From b7487a098cc140448a633e763d1e7dd2fd087653 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 25 Dec 2020 20:58:03 +0530 Subject: moved lemonbar to different folder --- herbstluftwm/autostart | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-) (limited to 'herbstluftwm/autostart') diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 9874f60e..b0b063a0 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -4,32 +4,26 @@ hc() { } hc emit_hook reload -# remove all existing keybindings +# remove all existing keybindings hc keyunbind --all + # focus follows mouse hc set focus_follows_mouse 1 Mod=Mod4 # Use the super key as the main modifier -myTerminal=st # keybindings (rest are handled by sxhkd) hc keybind $Mod-Shift-q quit hc keybind $Mod-Shift-r reload hc keybind Mod1-w close -hc keybind $Mod-Return spawn "${TERMINAL:-konsole}" - -# splitting frames -# create an empty frame at the specified direction -hc keybind $Mod-a split bottom 0.5 -hc keybind $Mod-s split right 0.5 -# let the current frame explode into subframes -# hc keybind $Mod-f split explode +hc keybind $Mod-Return spawn st # for resizing frames and floating clients -resizestep=0.02 +resizestep=0.01 # tags -tag_names=( {1..9} 0 ) +# if I don't add the period to the last tag, it messes up lemonbar +tag_names=( 一, 二, 三, 四, 五, 六, 七, 八, 九, 十, 十一, 十二, 十三. ) tag_keys=( {1..9} 0 ) hc rename default "${tag_names[0]}" || true @@ -42,12 +36,10 @@ for i in "${!tag_names[@]}" ; do fi done -# layouting -hc keybind $Mod-d remove -# The following cycles through the available layouts within a frame, but skips -# layouts, if the layout change wouldn't affect the actual window positions. -# I.e. if there are two windows within a frame, the grid layout is skipped. -hc keybind Mod1-space \ +# cycle through layouts while +# ignoring the layouts which won't +# make a difference +hc keybind Mod4-space \ or , and . compare tags.focus.curframe_wcount = 2 \ . cycle_layout +1 vertical horizontal max vertical grid \ , cycle_layout +1 @@ -121,10 +113,5 @@ hc unlock # or simply: # hc detect_monitors -# find the panel -panel=~/.config/scripts/launch-lemonbar -[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh -for monitor in $(hc list_monitors | cut -d: -f1) ; do - # start it on each monitor - "$panel" "$monitor" & -done +# launch the panel +./bar/launch -- cgit v1.2.3