aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm
diff options
context:
space:
mode:
Diffstat (limited to 'herbstluftwm')
-rwxr-xr-xherbstluftwm/autostart79
1 files changed, 6 insertions, 73 deletions
diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart
index ff7afd37..9874f60e 100755
--- a/herbstluftwm/autostart
+++ b/herbstluftwm/autostart
@@ -1,82 +1,32 @@
#!/usr/bin/env bash
-
-# this is a simple config for herbstluftwm
-
hc() {
herbstclient "$@"
}
-
hc emit_hook reload
-# xsetroot -solid '#ffffff'
-
# remove all existing keybindings
hc keyunbind --all
-
+# focus follows mouse
hc set focus_follows_mouse 1
-# keybindings
-# 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 run_dmenu
-# hc keybind Mod4-Shift-m spawn betterlockscreen -s
-# 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 &
-deadd-notification-center &
-sxhkd &
-
-TERMINAL=st
-
+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}" # use your $TERMINAL with xterm as fallback
-
-# basic movement in tiling and floating mode
-# focusing clients
-hc keybind $Mod-Left focus left
-hc keybind $Mod-Down focus down
-hc keybind $Mod-Up focus up
-hc keybind $Mod-Right focus right
-hc keybind $Mod-h focus left
-hc keybind $Mod-j focus down
-hc keybind $Mod-k focus up
-hc keybind $Mod-l focus right
-
-# moving clients in tiling and floating mode
-hc keybind $Mod-Shift-Left shift left
-hc keybind $Mod-Shift-Down shift down
-hc keybind $Mod-Shift-Up shift up
-hc keybind $Mod-Shift-Right shift right
-hc keybind $Mod-Shift-h shift left
-hc keybind $Mod-Shift-j shift down
-hc keybind $Mod-Shift-k shift up
-hc keybind $Mod-Shift-l shift right
+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-f split explode
-# resizing frames and floating clients
+# for resizing frames and floating clients
resizestep=0.02
-hc keybind Mod1-Mod4-h resize left +$resizestep
-hc keybind Mod1-Mod4-j resize down +$resizestep
-hc keybind Mod1-Mod4-k resize up +$resizestep
-hc keybind Mod1-Mod4-l resize right +$resizestep
-hc keybind $Mod-Control-Left resize left +$resizestep
-hc keybind $Mod-Control-Down resize down +$resizestep
-hc keybind $Mod-Control-Up resize up +$resizestep
-hc keybind $Mod-Control-Right resize right +$resizestep
# tags
tag_names=( {1..9} 0 )
@@ -92,18 +42,8 @@ for i in "${!tag_names[@]}" ; do
fi
done
-# cycle through tags
-hc keybind Mod1-l use_index +1 --skip-visible
-hc keybind Mod1-h use_index -1 --skip-visible
-hc keybind Mod4-q use_index -1 --skip-visible
-hc keybind Mod4-w use_index +1 --skip-visible
-
# layouting
hc keybind $Mod-d remove
-hc keybind Mod1-Shift-o floating toggle
-hc keybind Mod1-p fullscreen toggle
-hc keybind Mod1-o set_attr clients.focus.floating toggle
-hc keybind Mod1-i pseudotile toggle
# 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.
@@ -118,13 +58,6 @@ hc mousebind $Mod-Button1 move
hc mousebind $Mod-Button2 zoom
hc mousebind $Mod-Button3 resize
-# focus
-hc keybind $Mod-BackSpace cycle_monitor
-hc keybind Mod1-j cycle_all +1
-hc keybind Mod1-k cycle_all -1
-hc keybind Mod1-c cycle
-hc keybind Mod1-u jumpto urgent
-
# theme
hc attr theme.tiling.reset 1
hc attr theme.floating.reset 1