summaryrefslogtreecommitdiff
path: root/.config/leftwm/themes
diff options
context:
space:
mode:
Diffstat (limited to '.config/leftwm/themes')
-rw-r--r--.config/leftwm/themes/basic_lemonbar/background.jpgbin0 -> 294696 bytes
-rwxr-xr-x.config/leftwm/themes/basic_lemonbar/change_to_tag2
-rwxr-xr-x.config/leftwm/themes/basic_lemonbar/down16
-rw-r--r--.config/leftwm/themes/basic_lemonbar/down.jpgbin0 -> 539 bytes
-rw-r--r--.config/leftwm/themes/basic_lemonbar/sizes.liquid3
-rw-r--r--.config/leftwm/themes/basic_lemonbar/template.liquid18
-rw-r--r--.config/leftwm/themes/basic_lemonbar/theme.toml5
-rwxr-xr-x.config/leftwm/themes/basic_lemonbar/up39
8 files changed, 83 insertions, 0 deletions
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
--- /dev/null
+++ b/.config/leftwm/themes/basic_lemonbar/background.jpg
Binary files 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
--- /dev/null
+++ b/.config/leftwm/themes/basic_lemonbar/down.jpg
Binary files 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
+