mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-10 18:11:13 +10:00
Working on herbstluftwm.
This commit is contained in:
@@ -27,17 +27,18 @@ nitrogen --restore &
|
|||||||
hc keyunbind --all
|
hc keyunbind --all
|
||||||
|
|
||||||
# keybindings
|
# 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
|
Mod=Mod4 # Use the super key as the main modifier
|
||||||
|
myTerm=alacritty # Set my preferred terminal
|
||||||
|
myEditor="emacsclient -c -a emacs" # Set my preferred editor
|
||||||
|
|
||||||
hc keybind $Mod-Shift-q quit
|
hc keybind $Mod-Shift-q quit
|
||||||
hc keybind $Mod-Shift-r reload
|
hc keybind $Mod-Shift-r reload
|
||||||
hc keybind $Mod-Shift-c close
|
hc keybind $Mod-Shift-c close
|
||||||
hc keybind $Mod-Return spawn st
|
hc keybind $Mod-Return spawn $myTerm
|
||||||
|
hc keybind $Mod-e spawn $myEditor
|
||||||
|
|
||||||
# Dmenu launcher
|
# Dmenu launcher
|
||||||
hc keybind Mod1-Control-Return spawn dmenu_run -fn 'Mononoki Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'
|
hc keybind $Mod-Shift-Return spawn dmenu_run -fn 'Mononoki Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'
|
||||||
|
|
||||||
# My dmenu scripts (Alt+Ctrl+Key)
|
# My dmenu scripts (Alt+Ctrl+Key)
|
||||||
hc keybind Mod1-Control-e spawn ./.dmenu/dmenu-edit-configs.sh
|
hc keybind Mod1-Control-e spawn ./.dmenu/dmenu-edit-configs.sh
|
||||||
@@ -47,20 +48,19 @@ hc keybind Mod1-Control-s spawn ./.dmenu/dmenu-surfraw.sh
|
|||||||
hc keybind Mod1-Control-t spawn ./.dmenu/dmenu-trading.sh
|
hc keybind Mod1-Control-t spawn ./.dmenu/dmenu-trading.sh
|
||||||
|
|
||||||
# My applications (Super+Alt+Key)
|
# My applications (Super+Alt+Key)
|
||||||
hc keybind $Mod-Mod1-l spawn st -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com
|
hc keybind $Mod-Mod1-l spawn $myTerm -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com
|
||||||
hc keybind $Mod-Mod1-n spawn st -e newsboat
|
hc keybind $Mod-Mod1-n spawn $myTerm -e newsboat
|
||||||
hc keybind $Mod-Mod1-r spawn st -e rtv
|
hc keybind $Mod-Mod1-r spawn $myTerm -e rtv
|
||||||
hc keybind $Mod-Mod1-e spawn st -e neomutt
|
hc keybind $Mod-Mod1-e spawn $myTerm -e neomutt
|
||||||
hc keybind $Mod-Mod1-m spawn st -e toot curses
|
hc keybind $Mod-Mod1-m spawn $myTerm -e toot curses
|
||||||
hc keybind $Mod-Mod1-t spawn st -e sh ./scripts/tig-script.sh
|
hc keybind $Mod-Mod1-t spawn $myTerm -e sh ./scripts/tig-script.sh
|
||||||
hc keybind $Mod-Mod1-f spawn st -e ~/.config/vifm/scripts/vifmrun
|
hc keybind $Mod-Mod1-f spawn $myTerm -e ~/.config/vifm/scripts/vifmrun
|
||||||
hc keybind $Mod-Mod1-j spawn st -e joplin
|
hc keybind $Mod-Mod1-j spawn $myTerm -e joplin
|
||||||
hc keybind $Mod-Mod1-c spawn st -e cmus
|
hc keybind $Mod-Mod1-c spawn $myTerm -e cmus
|
||||||
hc keybind $Mod-Mod1-i spawn st -e irssi
|
hc keybind $Mod-Mod1-i spawn $myTerm -e irssi
|
||||||
hc keybind $Mod-Mod1-y spawn st -e youtube-viewer
|
hc keybind $Mod-Mod1-y spawn $myTerm -e youtube-viewer
|
||||||
hc keybind $Mod-Mod1-a spawn st -e ncpamixer
|
hc keybind $Mod-Mod1-a spawn $myTerm -e ncpamixer
|
||||||
|
|
||||||
# basic movement
|
|
||||||
# focusing clients
|
# focusing clients
|
||||||
hc keybind $Mod-Left focus left
|
hc keybind $Mod-Left focus left
|
||||||
hc keybind $Mod-Down focus down
|
hc keybind $Mod-Down focus down
|
||||||
@@ -82,10 +82,8 @@ hc keybind $Mod-Shift-k shift up
|
|||||||
hc keybind $Mod-Shift-l shift right
|
hc keybind $Mod-Shift-l shift right
|
||||||
|
|
||||||
# splitting frames
|
# splitting frames
|
||||||
# create an empty frame at the specified direction
|
|
||||||
hc keybind $Mod-u split bottom 0.5
|
hc keybind $Mod-u split bottom 0.5
|
||||||
hc keybind $Mod-o split right 0.5
|
hc keybind $Mod-o split right 0.5
|
||||||
# let the current frame explode into subframes
|
|
||||||
hc keybind $Mod-Control-space split explode
|
hc keybind $Mod-Control-space split explode
|
||||||
|
|
||||||
# resizing frames
|
# resizing frames
|
||||||
@@ -100,8 +98,7 @@ hc keybind $Mod-Control-Up resize up +$resizestep
|
|||||||
hc keybind $Mod-Control-Right resize right +$resizestep
|
hc keybind $Mod-Control-Right resize right +$resizestep
|
||||||
|
|
||||||
# tags
|
# tags
|
||||||
tag_names=( {1..9} )
|
tag_names=("dev" "www" "sys" "doc" "vbox" "chat" "mus" "vid" "gfx")
|
||||||
tag_icons=( {1..9} )
|
|
||||||
tag_keys=( {1..9} 0 )
|
tag_keys=( {1..9} 0 )
|
||||||
|
|
||||||
hc rename default "${tag_names[0]}" || true
|
hc rename default "${tag_names[0]}" || true
|
||||||
@@ -152,10 +149,10 @@ hc set frame_border_normal_color '#101010'
|
|||||||
hc set frame_bg_normal_color '#565656'
|
hc set frame_bg_normal_color '#565656'
|
||||||
hc set frame_bg_active_color '#345F0C'
|
hc set frame_bg_active_color '#345F0C'
|
||||||
hc set frame_border_width 1
|
hc set frame_border_width 1
|
||||||
hc set always_show_frame 1
|
hc set always_show_frame 0
|
||||||
hc set frame_bg_transparent 1
|
hc set frame_bg_transparent 1
|
||||||
hc set frame_transparent_width 5
|
hc set frame_transparent_width 0
|
||||||
hc set frame_gap 4
|
hc set frame_padding 0
|
||||||
hc set focus_follows_mouse 1
|
hc set focus_follows_mouse 1
|
||||||
|
|
||||||
hc attr theme.active.color '#9fbc00'
|
hc attr theme.active.color '#9fbc00'
|
||||||
@@ -171,8 +168,7 @@ hc attr theme.active.inner_color '#3E4A00'
|
|||||||
hc attr theme.active.outer_color '#3E4A00'
|
hc attr theme.active.outer_color '#3E4A00'
|
||||||
hc attr theme.background_color '#141414'
|
hc attr theme.background_color '#141414'
|
||||||
|
|
||||||
hc set window_gap 0
|
hc set window_gap 8
|
||||||
hc set frame_padding 0
|
|
||||||
hc set smart_window_surroundings 0
|
hc set smart_window_surroundings 0
|
||||||
hc set smart_frame_surroundings 1
|
hc set smart_frame_surroundings 1
|
||||||
hc set mouse_recenter_gap 0
|
hc set mouse_recenter_gap 0
|
||||||
@@ -203,7 +199,7 @@ herbstclient set tree_style '╾│ ├└╼─┐'
|
|||||||
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
|
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
|
||||||
# or simply:
|
# or simply:
|
||||||
# hc detect_monitors
|
# hc detect_monitors
|
||||||
hc set_monitors 1920x1058+1920+22 1920x1058+3840+22 1920x1058+0+22
|
hc set_monitors 1920x1060+0+22 1920x1060+1920+22 1920x1060+3840+22
|
||||||
|
|
||||||
# find the panel
|
# find the panel
|
||||||
panel=~/.config/herbstluftwm/panel.sh
|
panel=~/.config/herbstluftwm/panel.sh
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|||||||
|
|
||||||
if type "xrandr"; then
|
if type "xrandr"; then
|
||||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
MONITOR=$m polybar --reload mainbar-xmonad &
|
MONITOR=$m polybar --reload mainbar-herbst &
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
polybar --reload mainbar-xmonad &
|
polybar --reload mainbar-herbst &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Bars launched..."
|
echo "Bars launched..."
|
||||||
|
|||||||
+69
-1
@@ -359,6 +359,72 @@ tray-background = ${colors.background}
|
|||||||
scroll-up = bspwm-desknext
|
scroll-up = bspwm-desknext
|
||||||
scroll-down = bspwm-deskprev
|
scroll-down = bspwm-deskprev
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
################################################################################
|
||||||
|
############ MAINBAR-HERBST ############
|
||||||
|
################################################################################
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
[bar/mainbar-herbst]
|
||||||
|
monitor = ${env:MONITOR}
|
||||||
|
;monitor-fallback = HDMI1
|
||||||
|
width = 100%
|
||||||
|
height = 20
|
||||||
|
;offset-x = 1%
|
||||||
|
;offset-y = 1%
|
||||||
|
radius = 0.0
|
||||||
|
fixed-center = true
|
||||||
|
bottom = false
|
||||||
|
separator =
|
||||||
|
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
line-size = 2
|
||||||
|
line-color = #f00
|
||||||
|
|
||||||
|
override-redirect = true
|
||||||
|
|
||||||
|
; Enable support for inter-process messaging
|
||||||
|
; See the Messaging wiki page for more details.
|
||||||
|
enable-ipc = true
|
||||||
|
|
||||||
|
border-size = 0
|
||||||
|
;border-left-size = 0
|
||||||
|
;border-right-size = 25
|
||||||
|
;border-top-size = 0
|
||||||
|
;border-bottom-size = 25
|
||||||
|
border-color = #00000000
|
||||||
|
|
||||||
|
padding-left = 1
|
||||||
|
padding-right = 1
|
||||||
|
|
||||||
|
module-margin-left = 0
|
||||||
|
module-margin-right = 0
|
||||||
|
|
||||||
|
;https://github.com/jaagr/polybar/wiki/Fonts
|
||||||
|
font-0 = "UbuntuMono Nerd Font:size=10;2"
|
||||||
|
font-1 = "UbuntuMono Nerd Font:size=16;3"
|
||||||
|
font-2 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1"
|
||||||
|
font-3 = "Font Awesome 5 Free:style=Solid:pixelsize=8;1"
|
||||||
|
font-4 = "Font Awesome 5 Brands:pixelsize=8;1"
|
||||||
|
|
||||||
|
modules-left = ewmh xwindow
|
||||||
|
modules-center =
|
||||||
|
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow2 pavolume arrow3 arch-aur-updates arrow2 date
|
||||||
|
|
||||||
|
tray-detached = false
|
||||||
|
tray-offset-x = 0
|
||||||
|
tray-offset-y = 0
|
||||||
|
tray-position = right
|
||||||
|
tray-padding = 2
|
||||||
|
tray-maxsize = 20
|
||||||
|
tray-scale = 1.0
|
||||||
|
tray-background = ${colors.background}
|
||||||
|
|
||||||
|
scroll-up = bspwm-desknext
|
||||||
|
scroll-down = bspwm-deskprev
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
################################################################################
|
################################################################################
|
||||||
############ MAINBAR-XMONAD ############
|
############ MAINBAR-XMONAD ############
|
||||||
@@ -1570,7 +1636,9 @@ label = %title%
|
|||||||
label-maxlen = 50
|
label-maxlen = 50
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-foreground = ${colors.foreground}
|
format-prefix-underline = #292d3e
|
||||||
|
format-underline = #e1acff
|
||||||
|
format-foreground = #e1acff
|
||||||
format-background = ${colors.background}
|
format-background = ${colors.background}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user