diff options
Diffstat (limited to '.config/leftwm')
-rw-r--r-- | .config/leftwm/config.toml | 212 | ||||
-rw-r--r-- | .config/leftwm/themes/basic_lemonbar/background.jpg | bin | 0 -> 294696 bytes | |||
-rwxr-xr-x | .config/leftwm/themes/basic_lemonbar/change_to_tag | 2 | ||||
-rwxr-xr-x | .config/leftwm/themes/basic_lemonbar/down | 16 | ||||
-rw-r--r-- | .config/leftwm/themes/basic_lemonbar/down.jpg | bin | 0 -> 539 bytes | |||
-rw-r--r-- | .config/leftwm/themes/basic_lemonbar/sizes.liquid | 3 | ||||
-rw-r--r-- | .config/leftwm/themes/basic_lemonbar/template.liquid | 18 | ||||
-rw-r--r-- | .config/leftwm/themes/basic_lemonbar/theme.toml | 5 | ||||
-rwxr-xr-x | .config/leftwm/themes/basic_lemonbar/up | 39 |
9 files changed, 295 insertions, 0 deletions
diff --git a/.config/leftwm/config.toml b/.config/leftwm/config.toml new file mode 100644 index 0000000..89511f9 --- /dev/null +++ b/.config/leftwm/config.toml @@ -0,0 +1,212 @@ +modkey = "Mod4" +workspaces = [] +tags = ["1", "2", "3", "4", "5", "6", "7", "8", "9"] + +[[keybind]] +command = "Execute" +value = "dmenu_run" +modifier = ["modkey"] +key = "p" + +[[keybind]] +command = "Execute" +value = "alacritty" +modifier = ["modkey", "Shift"] +key = "Return" + +[[keybind]] +command = "Execute" +value = "rofi -modi drun -show drun -show-icons" +modifier = ["modkey"] +key = "space" + +[[keybind]] +command = "Execute" +value = "brave" +modifier = ["modkey", "Shift"] +key = "b" + +[[keybind]] +command = "CloseWindow" +modifier = ["modkey", "Shift"] +key = "q" + +[[keybind]] +command = "SoftReload" +modifier = ["modkey", "Shift"] +key = "r" + +[[keybind]] +command = "Execute" +value = "pkill leftwm" +modifier = ["modkey", "Shift"] +key = "x" + +[[keybind]] +command = "Execute" +value = "slock" +modifier = ["modkey", "Control"] +key = "l" + +[[keybind]] +command = "MoveToLastWorkspace" +modifier = ["modkey", "Shift"] +key = "w" + +[[keybind]] +command = "SwapTags" +modifier = ["modkey"] +key = "w" + +[[keybind]] +command = "MoveWindowUp" +modifier = ["modkey", "Shift"] +key = "k" + +[[keybind]] +command = "MoveWindowDown" +modifier = ["modkey", "Shift"] +key = "j" + +[[keybind]] +command = "MoveWindowTop" +modifier = ["modkey"] +key = "Return" + +[[keybind]] +command = "FocusWindowUp" +modifier = ["modkey"] +key = "k" + +[[keybind]] +command = "FocusWindowDown" +modifier = ["modkey"] +key = "j" + +[[keybind]] +command = "NextLayout" +modifier = ["modkey", "Control"] +key = "k" + +[[keybind]] +command = "PreviousLayout" +modifier = ["modkey", "Control"] +key = "j" + +[[keybind]] +command = "FocusWorkspaceNext" +modifier = ["modkey"] +key = "l" + +[[keybind]] +command = "FocusWorkspacePrevious" +modifier = ["modkey"] +key = "h" + +[[keybind]] +command = "GotoTag" +value = "1" +modifier = ["modkey"] +key = "1" + +[[keybind]] +command = "GotoTag" +value = "2" +modifier = ["modkey"] +key = "2" + +[[keybind]] +command = "GotoTag" +value = "3" +modifier = ["modkey"] +key = "3" + +[[keybind]] +command = "GotoTag" +value = "4" +modifier = ["modkey"] +key = "4" + +[[keybind]] +command = "GotoTag" +value = "5" +modifier = ["modkey"] +key = "5" + +[[keybind]] +command = "GotoTag" +value = "6" +modifier = ["modkey"] +key = "6" + +[[keybind]] +command = "GotoTag" +value = "7" +modifier = ["modkey"] +key = "7" + +[[keybind]] +command = "GotoTag" +value = "8" +modifier = ["modkey"] +key = "8" + +[[keybind]] +command = "GotoTag" +value = "9" +modifier = ["modkey"] +key = "9" + +[[keybind]] +command = "MoveToTag" +value = "1" +modifier = ["modkey", "Shift"] +key = "1" + +[[keybind]] +command = "MoveToTag" +value = "2" +modifier = ["modkey", "Shift"] +key = "2" + +[[keybind]] +command = "MoveToTag" +value = "3" +modifier = ["modkey", "Shift"] +key = "3" + +[[keybind]] +command = "MoveToTag" +value = "4" +modifier = ["modkey", "Shift"] +key = "4" + +[[keybind]] +command = "MoveToTag" +value = "5" +modifier = ["modkey", "Shift"] +key = "5" + +[[keybind]] +command = "MoveToTag" +value = "6" +modifier = ["modkey", "Shift"] +key = "6" + +[[keybind]] +command = "MoveToTag" +value = "7" +modifier = ["modkey", "Shift"] +key = "7" + +[[keybind]] +command = "MoveToTag" +value = "8" +modifier = ["modkey", "Shift"] +key = "8" + +[[keybind]] +command = "MoveToTag" +value = "9" +modifier = ["modkey", "Shift"] +key = "9" diff --git a/.config/leftwm/themes/basic_lemonbar/background.jpg b/.config/leftwm/themes/basic_lemonbar/background.jpg Binary files differnew file mode 100644 index 0000000..3b35885 --- /dev/null +++ b/.config/leftwm/themes/basic_lemonbar/background.jpg diff --git a/.config/leftwm/themes/basic_lemonbar/change_to_tag b/.config/leftwm/themes/basic_lemonbar/change_to_tag new file mode 100755 index 0000000..8b64075 --- /dev/null +++ b/.config/leftwm/themes/basic_lemonbar/change_to_tag @@ -0,0 +1,2 @@ +#!/bin/bash +echo "SendWorkspaceToTag $1 $2" > $XDG_RUNTIME_DIR/leftwm/commands.pipe diff --git a/.config/leftwm/themes/basic_lemonbar/down b/.config/leftwm/themes/basic_lemonbar/down new file mode 100755 index 0000000..c088a2b --- /dev/null +++ b/.config/leftwm/themes/basic_lemonbar/down @@ -0,0 +1,16 @@ +#!/bin/bash + +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" + +#set background +if [ -x "$(command -v feh)" ]; then + feh --bg-scale $SCRIPTPATH/down.jpg +fi + +echo "UnloadTheme" > $XDG_RUNTIME_DIR/leftwm/commands.pipe + +pkill lemonbar +pkill compton +pkill picom +pkill lemonbar + diff --git a/.config/leftwm/themes/basic_lemonbar/down.jpg b/.config/leftwm/themes/basic_lemonbar/down.jpg Binary files differnew file mode 100644 index 0000000..da757f7 --- /dev/null +++ b/.config/leftwm/themes/basic_lemonbar/down.jpg diff --git a/.config/leftwm/themes/basic_lemonbar/sizes.liquid b/.config/leftwm/themes/basic_lemonbar/sizes.liquid new file mode 100644 index 0000000..1d731bd --- /dev/null +++ b/.config/leftwm/themes/basic_lemonbar/sizes.liquid @@ -0,0 +1,3 @@ +{% for workspace in workspaces %} +{{workspace.w}}x{{34}}+{{workspace.x}}+{{workspace.y}} +{% endfor %} diff --git a/.config/leftwm/themes/basic_lemonbar/template.liquid b/.config/leftwm/themes/basic_lemonbar/template.liquid new file mode 100644 index 0000000..eb547f3 --- /dev/null +++ b/.config/leftwm/themes/basic_lemonbar/template.liquid @@ -0,0 +1,18 @@ +{% assign mine_open = '%{F#000000}%{B#FFFFFF}' %} +{% assign mine_close = '%{B-}%{F-}' %} +{% assign visible_open = '%{F#000000}%{B#999999}' %} +{% assign visible_close = '%{B-}%{F-}' %} + +{% for tag in workspace.tags %} +{% if tag.mine %} +{{mine_open}} {{ tag.name }} {{mine_close}} +{% elsif tag.visible %} +{{visible_open}} {{ tag.name }} {{visible_close}} +{% else tag.visible %} + {{ tag.name }} +{% endif %} +{% endfor %} +%{c} +{{ window_title }} +%{r} +{{ localtime }} diff --git a/.config/leftwm/themes/basic_lemonbar/theme.toml b/.config/leftwm/themes/basic_lemonbar/theme.toml new file mode 100644 index 0000000..8d8df34 --- /dev/null +++ b/.config/leftwm/themes/basic_lemonbar/theme.toml @@ -0,0 +1,5 @@ +border_width = 1 +margin = 10 +default_border_color = "#222222" +floating_border_color = "#555555" +focused_border_color = "#AAAAAA" diff --git a/.config/leftwm/themes/basic_lemonbar/up b/.config/leftwm/themes/basic_lemonbar/up new file mode 100755 index 0000000..c8f49d1 --- /dev/null +++ b/.config/leftwm/themes/basic_lemonbar/up @@ -0,0 +1,39 @@ +#!/bin/bash +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" + + +#down the last running theme +if [ -f "/tmp/leftwm-theme-down" ]; then + /tmp/leftwm-theme-down + rm /tmp/leftwm-theme-down +fi +ln -s $SCRIPTPATH/down /tmp/leftwm-theme-down + + +#boot compton or picom if it exists +if [ -x "$(command -v compton)" ]; then + compton &> /dev/null & +elif [ -x "$(command -v picom)" ]; then + picom &> /dev/null & +fi + +#set the theme.toml config +echo "LoadTheme $SCRIPTPATH/theme.toml" > $XDG_RUNTIME_DIR/leftwm/commands.pipe + + +#set background +if [ -x "$(command -v feh)" ]; then + feh --bg-scale $SCRIPTPATH/background.jpg +fi + + +#boot lemonbar and pipe the status of left into it +sizes=( $(leftwm-state -q -n -t $SCRIPTPATH/sizes.liquid | sed -r '/^\s*$/d') ) + +index=0 +for size in "${sizes[@]}" +do + leftwm-state -w $index -t $SCRIPTPATH/template.liquid | lemonbar -g $size -F#FFFFFFFF -B#AA222222& + let index=index+1 +done + |