mirror of
https://github.com/tomru/hlwm-config.git
synced 2026-03-03 06:27:20 +01:00
gruvboxify things - and a can of worms
This commit is contained in:
19
autostart
19
autostart
@@ -11,15 +11,20 @@ store_pid() {
|
|||||||
echo $! >> $PIDS_FILE
|
echo $! >> $PIDS_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cd $(dirname $0)
|
||||||
|
|
||||||
|
source ./gruvbox_colors.sh
|
||||||
|
|
||||||
OLD_PIDS=$(cat $PIDS_FILE)
|
OLD_PIDS=$(cat $PIDS_FILE)
|
||||||
kill $(echo $OLD_PIDS)
|
kill $(echo $OLD_PIDS)
|
||||||
rm $PIDS_FILE
|
rm $PIDS_FILE
|
||||||
|
|
||||||
hc emit_hook reload
|
hc emit_hook reload
|
||||||
|
|
||||||
~/.config/herbstluftwm/bindings.sh
|
./wallpaper.sh
|
||||||
~/.config/herbstluftwm/rules.sh
|
./bindings.sh
|
||||||
~/.config/herbstluftwm/styling.sh
|
./rules.sh
|
||||||
|
./styling.sh
|
||||||
|
|
||||||
hc set tree_style '╾│ ├└╼─┐'
|
hc set tree_style '╾│ ├└╼─┐'
|
||||||
hc unlock
|
hc unlock
|
||||||
@@ -31,15 +36,15 @@ statusbar_height=20
|
|||||||
for monitor in $(hc list_monitors | cut -d: -f1) ; do
|
for monitor in $(hc list_monitors | cut -d: -f1) ; do
|
||||||
# start it on each monitor
|
# start it on each monitor
|
||||||
hc pad $monitor $panel_height 0 $statusbar_height 0
|
hc pad $monitor $panel_height 0 $statusbar_height 0
|
||||||
~/.config/herbstluftwm/panel.sh $monitor & store_pid
|
./panel.py $monitor & store_pid
|
||||||
~/.config/herbstluftwm/statusbar.sh $monitor & store_pid
|
./statusbar.sh $monitor & store_pid
|
||||||
done
|
done
|
||||||
|
|
||||||
~/.config/herbstluftwm/tray.sh & store_pid
|
./tray.sh & store_pid
|
||||||
udiskie --tray & store_pid
|
udiskie --tray & store_pid
|
||||||
|
|
||||||
systemctl --user restart sxhkd
|
systemctl --user restart sxhkd
|
||||||
systemctl --user restart xautolock
|
systemctl --user restart xautolock
|
||||||
systemd-run --user --on-active=30 ~/local/bin/battery-warning.sh
|
systemctl --user restart battery-warning.timer
|
||||||
|
|
||||||
wmname LG3D
|
wmname LG3D
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
|
||||||
|
|
||||||
hc() {
|
hc() {
|
||||||
herbstclient "$@"
|
herbstclient "$@"
|
||||||
|
|||||||
5
rules.sh
5
rules.sh
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
|
||||||
|
|
||||||
hc() {
|
hc() {
|
||||||
herbstclient "$@"
|
herbstclient "$@"
|
||||||
@@ -7,10 +6,12 @@ hc() {
|
|||||||
|
|
||||||
# rules
|
# rules
|
||||||
hc unrule -F
|
hc unrule -F
|
||||||
#hc rule class=XTerm tag=3 # move all xterms to tag 3
|
|
||||||
hc rule focus=off # normally do not focus new clients
|
hc rule focus=off # normally do not focus new clients
|
||||||
|
|
||||||
# give focus to most common terminals
|
# give focus to most common terminals
|
||||||
hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
|
hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
|
||||||
|
|
||||||
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
|
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
|
||||||
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
|
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
|
||||||
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off
|
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ./gruvbox_colors.sh
|
font="Fira Code:pixelsize=16"
|
||||||
font="Fira Code:pixelsize=11"
|
|
||||||
|
|
||||||
function uniq_linebuffered() {
|
function uniq_linebuffered() {
|
||||||
awk -W interactive '$0 != l { print ; l=$0 ; fflush(); }' "$@"
|
awk -W interactive '$0 != l { print ; l=$0 ; fflush(); }' "$@"
|
||||||
@@ -52,5 +51,5 @@ panelGeometry=${geometry[2]}x${statusbar_height}+${x}+${y}
|
|||||||
| lemonbar \
|
| lemonbar \
|
||||||
-g $panelGeometry \
|
-g $panelGeometry \
|
||||||
-f "$font" \
|
-f "$font" \
|
||||||
-B $GRUVBOX_DARK0 -F $GRUVBOX_LIGHT0 \
|
-B $GRUVBOX_DARK1 -F $GRUVBOX_LIGHT0 \
|
||||||
-u 2
|
-u 2
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ hc() {
|
|||||||
herbstclient "$@"
|
herbstclient "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./gruvbox_colors.sh
|
|
||||||
|
|
||||||
./wallpaper.sh
|
|
||||||
|
|
||||||
# frame/window styling
|
# frame/window styling
|
||||||
hc set frame_border_active_color "$GRUVBOX_DARK4"
|
hc set frame_border_active_color "$GRUVBOX_DARK4"
|
||||||
hc set frame_border_normal_color "$GRUVBOX_DARK0"
|
hc set frame_border_normal_color "$GRUVBOX_DARK0"
|
||||||
|
|||||||
4
tray.sh
4
tray.sh
@@ -1,12 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ./gruvbox_colors.sh
|
|
||||||
|
|
||||||
set $(herbstclient monitor_rect 0)
|
set $(herbstclient monitor_rect 0)
|
||||||
|
|
||||||
TRAY_GEOMETRY=5x1+$(($3 - 100))+0
|
TRAY_GEOMETRY=5x1+$(($3 - 100))+0
|
||||||
stalonetray \
|
stalonetray \
|
||||||
--background "$GRUVBOX_DARK0" \
|
--background "$GRUVBOX_DARK1" \
|
||||||
--geometry $TRAY_GEOMETRY \
|
--geometry $TRAY_GEOMETRY \
|
||||||
--icon-size 20 \
|
--icon-size 20 \
|
||||||
--kludges force_icons_size \
|
--kludges force_icons_size \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# xsetroot -solid '#eee8d5'
|
xsetroot -solid '$GRUVBOX_DARK0'
|
||||||
|
|
||||||
# random wallpaper
|
# random wallpaper
|
||||||
WALLPAPERDIR=$(dirname "$0")/wallpapers
|
WALLPAPERDIR=$(dirname "$0")/wallpapers
|
||||||
|
|||||||
Reference in New Issue
Block a user