aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm
diff options
context:
space:
mode:
Diffstat (limited to 'herbstluftwm')
-rwxr-xr-xherbstluftwm/autostart12
-rwxr-xr-xherbstluftwm/launch15
2 files changed, 23 insertions, 4 deletions
diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart
index ae804687..b1287405 100755
--- a/herbstluftwm/autostart
+++ b/herbstluftwm/autostart
@@ -19,16 +19,15 @@ hc set focus_follows_mouse 1
# if you have a super key you will be much happier with Mod set to Mod4
# Mod=Mod1 # Use alt as the main modifier
Mod=Mod4 # Use the super key as the main modifier
-hc keybind Mod1-Return spawn dmenu_run
+hc keybind Mod1-Return spawn run_dmenu
hc keybind Mod4-Shift-m spawn betterlockscreen -s
-hc keybind Mod1-s spawn scrot ~/Media/Screenshots/%Y-%d-%m-%T-screenshot.png
+hc keybind Mod1-s spawn scrot /zt/Screenshots/%Y-%d-%m-%T-screenshot.png
hc keybind Mod4-Shift-Return spawn pcmanfm
# autostart
firefox &
picom &
nitrogen --restore &
-polybar herbstluftbar &
dunst &
TERMINAL=st
@@ -159,6 +158,11 @@ hc set frame_padding 1
hc set smart_window_surroundings on
hc set smart_frame_surroundings on
hc set mouse_recenter_gap 0
+hc set default_frame_layout 3
+hc set hide_covered_windows 1
+hc set gapless_grid 1
+hc set auto_detect_panels 1
+
# rules
@@ -183,7 +187,7 @@ hc unlock
# hc detect_monitors
# find the panel
-panel=~/.config/herbstluftwm/panel.sh
+panel=~/.config/herbstluftwm/launch
[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh
for monitor in $(hc list_monitors | cut -d: -f1) ; do
# start it on each monitor
diff --git a/herbstluftwm/launch b/herbstluftwm/launch
new file mode 100755
index 00000000..19488304
--- /dev/null
+++ b/herbstluftwm/launch
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# this script executes the mainbar script
+# then pipes it into lemonbar
+# and pipes the lemonbar's output
+# to the button-actions script
+# which handles all the button actions
+
+cd /home/zt/.config/lemonbar
+
+./mainbar | lemonbar -g 1366x21 -B '#171520' -p -F '#ffffff' -f "Source Han Sans JP:size=10" -o -3 -f "RobotoMono Nerd Font:style=Regular:size=15" -f -n "mainbar" -o 0 | ./button-actions
+
+echo "lemonbar launched"
+
+exit