Skip to content

Commit

Permalink
feat(conky): add conky sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi committed Nov 25, 2021
1 parent 0000000 commit 0000000
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "sddm/sddm-sugar-candy"]
path = sddm/sddm-sugar-candy
url = https://framagit.org/MarianArlt/sddm-sugar-candy.git
[submodule "conky/lean-conky-config"]
path = conky/lean-conky-config
url = git@github.com:jxai/lean-conky-config.git
5 changes: 5 additions & 0 deletions .local/bin/toggle-sidebar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_() {
bspc config right_padding "$@"
}

p=300 && [[ $(_) -eq $p ]] && _ 0 || _ $p
2 changes: 2 additions & 0 deletions bspwm/bspwmrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ xautolock -time 10 -locker 'lock' -corners ---- -cornersize 30 &
hsetroot -fill $WALLPAPER_PATH
# battery checker
sh $HOME/.local/bin/check-battery.sh &
# start conky
sh $HOME/.config/conky/start.sh &
# start redshift
if pgrep -x redshift > /dev/null
then
Expand Down
4 changes: 4 additions & 0 deletions conky/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
``` bash
$ mv lean-conky-config ~/.config/conky
$ cp local.conf ~/.config/conky/local.conf
```
1 change: 1 addition & 0 deletions conky/lean-conky-config
Submodule lean-conky-config added at 1d10c8
12 changes: 12 additions & 0 deletions conky/local.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- vim: ft=lua:ts=4:sw=4:et:ai:cin

-- override `conky.config` here
local_config = {
gap_x = 25,
gap_y = 65,
own_window = true,
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_class = 'Conky',
own_window_type = 'desktop',
}
6 changes: 5 additions & 1 deletion sxhkd/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ alt + space
sh $HOME/.config/rofi/appmenu.sh

# Open rofi powermenu
super + p
super + shift + p
sh $HOME/.config/rofi/powermenu.sh

# Toggle conky sidebar
super + p
sh $HOME/.local/bin/toggle-sidebar.sh

# screenshot
alt + shift + 4
flameshot gui

0 comments on commit 0000000

Please sign in to comment.