diff --git a/config/oneline.config b/config/oneline.config index 8f1debd2..da49378e 100644 --- a/config/oneline.config +++ b/config/oneline.config @@ -1,6 +1,24 @@ -# Placement configuration, add placement section if you want SFWBar to handle -# window placement. xcascade and ycascade paramters define a step to offset -# a new window location by. They are specified as a percent of desktop size. +function("SfwbarInit") { + SetLayer "overlay" + SetMonitor "eDP-1" +} + +function("ToggleMinimize") { + [!Minimized] Minimize + [Minimized] UnMinimize +} + +function("ToggleMaximize") { + [!Maximized] Maximize + [Maximized] UnMaximize +} + +menu("winops") { + item("focus", Focus ); + item("close", Close ); + item("(un)minimize", Function "ToggleMinimize" ); + item("(un)maximize", Function "ToggleMaximize" ); +} placer { xstep = 5 # step by 5% of desktop horizontally @@ -29,6 +47,7 @@ layout { icons = true # display icons labels = true # display titles rows = 1 # stack window buttons across two rows + action[3] = Menu "winops" } # add a pager @@ -224,3 +243,8 @@ label { font: 0.27cm Sans; color: #000000; } + +label#awesome { + font-family: "Font Awesome 5 Free"; + font-weight: 900; +} diff --git a/config/sfwbar.config b/config/sfwbar.config index e7eb2dd6..bbceda07 100644 --- a/config/sfwbar.config +++ b/config/sfwbar.config @@ -31,6 +31,28 @@ scanner { } } +function("SfwbarInit") { + SetLayer "overlay" + SetMonitor "eDP-1" +} + +function("ToggleMinimize") { + [!Minimized] Minimize + [Minimized] UnMinimize +} + +function("ToggleMaximize") { + [!Maximized] Maximize + [Maximized] UnMaximize +} + +menu("winops") { + item("focus", Focus ); + item("close", Close ); + item("(un)minimize", Function "ToggleMinimize" ); + item("(un)maximize", Function "ToggleMaximize" ); +} + # Window Placer placer { xorigin = 5 # place the first window at X% from the left @@ -56,6 +78,7 @@ layout { css = "* { -GtkWidget-hexpand: true; }" # stretch horizontally icons = true labels = true + action[3] = Menu "winops" } # add a pager @@ -275,3 +298,8 @@ label { font: 0.27cm Sans; color: #000000; } + +label#awesome { + font-family: "Font Awesome 5 Free"; + font-weight: 900; +} diff --git a/config/vertical.config b/config/vertical.config index 18e52947..edfc194a 100644 --- a/config/vertical.config +++ b/config/vertical.config @@ -1,6 +1,24 @@ -# Placement configuration, add placement section if you want SFWBar to handle -# window placement. xcascade and ycascade paramters define a step to offset -# a new window location by. They are specified as a percent of desktop size. +function("SfwbarInit") { + SetLayer "overlay" + SetMonitor "eDP-1" +} + +function("ToggleMinimize") { + [!Minimized] Minimize + [Minimized] UnMinimize +} + +function("ToggleMaximize") { + [!Maximized] Maximize + [Maximized] UnMaximize +} + +menu("winops") { + item("focus", Focus ); + item("close", Close ); + item("(un)minimize", Function "ToggleMinimize" ); + item("(un)maximize", Function "ToggleMaximize" ); +} placer { xstep = 5 # step by 5% of desktop horizontally @@ -29,6 +47,7 @@ layout { icons = true # display icons labels = false # don't display titles cols = 1 # stack window buttons across two rows + action[3] = Menu "winops" } label { @@ -48,7 +67,7 @@ layout { value = "firefox" # set icon on the button css = "* { min-height: 1.25cm; min-width: 1.25cm; }" # set icon size } - button { + button { action = "alacritty" value = "Alacritty" css = "* { min-height: 1.25cm; min-width: 1.25cm; }" @@ -233,3 +252,8 @@ label { font: 0.27cm Sans; color: #000000; } + +label#awesome { + font-family: "Font Awesome 5 Free"; + font-weight: 900; +}