From 553530387aaf6a442a33eba3f7b43b8911fc4bb8 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 7 Mar 2021 22:40:28 +0100 Subject: Add new arch configs, messed up color theme --- .config/leftwm/config.toml | 212 +++++++++++++++++++++ .../leftwm/themes/basic_lemonbar/background.jpg | Bin 0 -> 294696 bytes .config/leftwm/themes/basic_lemonbar/change_to_tag | 2 + .config/leftwm/themes/basic_lemonbar/down | 16 ++ .config/leftwm/themes/basic_lemonbar/down.jpg | Bin 0 -> 539 bytes .config/leftwm/themes/basic_lemonbar/sizes.liquid | 3 + .../leftwm/themes/basic_lemonbar/template.liquid | 18 ++ .config/leftwm/themes/basic_lemonbar/theme.toml | 5 + .config/leftwm/themes/basic_lemonbar/up | 39 ++++ 9 files changed, 295 insertions(+) create mode 100644 .config/leftwm/config.toml create mode 100644 .config/leftwm/themes/basic_lemonbar/background.jpg create mode 100755 .config/leftwm/themes/basic_lemonbar/change_to_tag create mode 100755 .config/leftwm/themes/basic_lemonbar/down create mode 100644 .config/leftwm/themes/basic_lemonbar/down.jpg create mode 100644 .config/leftwm/themes/basic_lemonbar/sizes.liquid create mode 100644 .config/leftwm/themes/basic_lemonbar/template.liquid create mode 100644 .config/leftwm/themes/basic_lemonbar/theme.toml create mode 100755 .config/leftwm/themes/basic_lemonbar/up (limited to '.config/leftwm') 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 new file mode 100644 index 0000000..3b35885 Binary files /dev/null and b/.config/leftwm/themes/basic_lemonbar/background.jpg differ 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 new file mode 100644 index 0000000..da757f7 Binary files /dev/null and b/.config/leftwm/themes/basic_lemonbar/down.jpg differ 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 + -- cgit v1.2.3-70-g09d2