refactore directory structure
This commit is contained in:
parent
3830eef1f4
commit
e87bfb7c39
485 changed files with 66 additions and 1696 deletions
BIN
.config/leftwm/themes/basic_polybar/background.png
Normal file
BIN
.config/leftwm/themes/basic_polybar/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 MiB |
2
.config/leftwm/themes/basic_polybar/change_to_tag
Executable file
2
.config/leftwm/themes/basic_polybar/change_to_tag
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
echo "SendWorkspaceToTag $1 $2" > $XDG_RUNTIME_DIR/leftwm/commands.pipe
|
15
.config/leftwm/themes/basic_polybar/down
Executable file
15
.config/leftwm/themes/basic_polybar/down
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/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 compton
|
||||
pkill picom
|
||||
pkill polybar
|
||||
|
BIN
.config/leftwm/themes/basic_polybar/down.jpg
Normal file
BIN
.config/leftwm/themes/basic_polybar/down.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 539 B |
1
.config/leftwm/themes/basic_polybar/polybar.config
Symbolic link
1
.config/leftwm/themes/basic_polybar/polybar.config
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/chris/.dotfiles/polybar/config
|
3
.config/leftwm/themes/basic_polybar/sizes.liquid
Normal file
3
.config/leftwm/themes/basic_polybar/sizes.liquid
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% for workspace in workspaces %}
|
||||
{{workspace.w}} {{workspace.x}} {{workspace.y}}
|
||||
{% endfor %}
|
17
.config/leftwm/themes/basic_polybar/template.liquid
Normal file
17
.config/leftwm/themes/basic_polybar/template.liquid
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% for tag in workspace.tags %}
|
||||
{% if tag.mine %}
|
||||
%{A1:$SCRIPTPATH/change_to_tag {{workspace.index}} {{tag.index}}:}
|
||||
%{F#000000}%{B#FFB52A} {{tag.name}} %{B-}%{F-}
|
||||
%{A}
|
||||
{% elsif tag.visible %}
|
||||
%{A1:$SCRIPTPATH/change_to_tag {{workspace.index}} {{tag.index}}:}
|
||||
%{F#000000}%{B#E60053} {{tag.name}} %{B-}%{F-}
|
||||
%{A}
|
||||
{% else tag.visible %}
|
||||
%{A1:$SCRIPTPATH/change_to_tag {{workspace.index}} {{tag.index}}:}
|
||||
%{F#FFFFFF} {{tag.name}} %{F-}
|
||||
%{A}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
%{c}
|
||||
{{ window_title }}
|
5
.config/leftwm/themes/basic_polybar/theme.toml
Normal file
5
.config/leftwm/themes/basic_polybar/theme.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
border_width = 1
|
||||
margin = 20
|
||||
default_border_color = "#222222"
|
||||
floating_border_color = "#005500"
|
||||
focused_border_color = "#FFB53A"
|
38
.config/leftwm/themes/basic_polybar/up
Executable file
38
.config/leftwm/themes/basic_polybar/up
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/bin/bash
|
||||
export 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.png
|
||||
fi
|
||||
|
||||
|
||||
index=0
|
||||
monitor="$(polybar -m | grep +0+0 | sed s/:.*// | tac)"
|
||||
leftwm-state -q -n -t $SCRIPTPATH/sizes.liquid | sed -r '/^\s*$/d' | while read -r width x y
|
||||
do
|
||||
barname="mainbar$index"
|
||||
monitor=$monitor offsetx=$x width=$width polybar -c $SCRIPTPATH/polybar.config $barname &> /dev/null &
|
||||
let index=index+1
|
||||
done
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue