Skip to content

Commit

Permalink
update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
LBCrion committed Jan 18, 2022
1 parent 336c744 commit a9beecb
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 7 deletions.
30 changes: 27 additions & 3 deletions config/oneline.config
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -224,3 +243,8 @@ label {
font: 0.27cm Sans;
color: #000000;
}

label#awesome {
font-family: "Font Awesome 5 Free";
font-weight: 900;
}
28 changes: 28 additions & 0 deletions config/sfwbar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -56,6 +78,7 @@ layout {
css = "* { -GtkWidget-hexpand: true; }" # stretch horizontally
icons = true
labels = true
action[3] = Menu "winops"
}

# add a pager
Expand Down Expand Up @@ -275,3 +298,8 @@ label {
font: 0.27cm Sans;
color: #000000;
}

label#awesome {
font-family: "Font Awesome 5 Free";
font-weight: 900;
}
32 changes: 28 additions & 4 deletions config/vertical.config
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 {
Expand All @@ -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; }"
Expand Down Expand Up @@ -233,3 +252,8 @@ label {
font: 0.27cm Sans;
color: #000000;
}

label#awesome {
font-family: "Font Awesome 5 Free";
font-weight: 900;
}

0 comments on commit a9beecb

Please sign in to comment.