More HLWM keybindings and visual tweaks. Unity alias

This commit is contained in:
Joseph Ferano 2023-08-11 18:30:15 +07:00
parent bba3fc4f0a
commit 232ab1a137
2 changed files with 20 additions and 8 deletions

View File

@ -0,0 +1,3 @@
function unity --wraps='env GDK_SCALE=2 /home/joe/Documents/Unity/2022.3.7f1/Editor/Unity -projectPath' --description 'alias unity env GDK_SCALE=2 /home/joe/Documents/Unity/2022.3.7f1/Editor/Unity -projectPath'
env GDK_SCALE=2 /home/joe/Documents/Unity/2022.3.7f1/Editor/Unity -projectPath $argv
end

View File

@ -10,9 +10,11 @@ hc emit_hook reload
xsetroot -solid '#5A8E3A' xsetroot -solid '#5A8E3A'
emacs --daemon
picom -b -c picom -b -c
nitrogen --restore & nitrogen --restore &
polybar & polybar &
feh --no-fehbg --bg-center ~/.cache/randomwallpaper@iflow.space/wallpapers/wallpaper.png
xset r rate 260 60 xset r rate 260 60
@ -28,6 +30,7 @@ hc keybind $Mod-Ctrl-q quit
hc keybind $Mod-Shift-r reload hc keybind $Mod-Shift-r reload
hc keybind $Mod-Shift-q close hc keybind $Mod-Shift-q close
hc keybind $Mod-Return spawn kitty # use your $TERMINAL with xterm as fallback hc keybind $Mod-Return spawn kitty # use your $TERMINAL with xterm as fallback
hc keybind $Mod-v spawn emacsclient -nc -e "(joe/vterm-here)"
hc keybind $Mod-space spawn emacsclient -cF "((visibility . nil))" -e "(emacs-run-launcher)" hc keybind $Mod-space spawn emacsclient -cF "((visibility . nil))" -e "(emacs-run-launcher)"
# basic movement in tiling and floating mode # basic movement in tiling and floating mode
@ -101,7 +104,7 @@ hc keybind $Mod-p pseudotile toggle
# I.e. if there are two windows within a frame, the grid layout is skipped. # I.e. if there are two windows within a frame, the grid layout is skipped.
hc keybind $Mod-w \ hc keybind $Mod-w \
or , and . compare tags.focus.curframe_wcount = 2 \ or , and . compare tags.focus.curframe_wcount = 2 \
. cycle_layout +1 vertical horizontal max vertical grid \ . cycle_layout +1 max horizontal \
, cycle_layout +1 , cycle_layout +1
# mouse # mouse
@ -110,6 +113,11 @@ hc mousebind $Mod-Button1 move
hc mousebind $Mod-Button2 zoom hc mousebind $Mod-Button2 zoom
hc mousebind $Mod-Button3 resize hc mousebind $Mod-Button3 resize
# media
hc keybind XF86AudioRaiseVolume spawn bash -c 'amixer sset Master 4%+; paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga'
hc keybind XF86AudioLowerVolume spawn bash -c 'amixer sset Master 4%-; paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga'
hc keybind XF86AudioPlay spawn bash -c 'playerctl -a play-pause; paplay /usr/share/sounds/freedesktop/stereo/dialog-warning.oga'
# focus # focus
hc keybind $Mod-BackSpace cycle_monitor hc keybind $Mod-BackSpace cycle_monitor
#hc keybind $Mod-Tab cycle_all +1 #hc keybind $Mod-Tab cycle_all +1
@ -132,11 +140,12 @@ hc set frame_bg_transparent on
hc set frame_transparent_width 5 hc set frame_transparent_width 5
hc set frame_gap 40 hc set frame_gap 40
hc attr theme.title_height 15 hc attr theme.title_height 20
hc attr theme.title_when always hc attr theme.title_when one_tab
hc attr theme.title_font 'Dejavu Sans:pixelsize=12' # example using Xft hc attr theme.title_align center
hc attr theme.title_font 'Liberation:pixelsize=15' # example using Xft
# hc attr theme.title_font '-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*' # hc attr theme.title_font '-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*'
hc attr theme.title_depth 3 # space below the title's baseline hc attr theme.title_depth 9 # space below the title's baseline
hc attr theme.active.color '#345F0Cef' hc attr theme.active.color '#345F0Cef'
hc attr theme.title_color '#ffffff' hc attr theme.title_color '#ffffff'
hc attr theme.normal.color '#323232dd' hc attr theme.normal.color '#323232dd'
@ -146,9 +155,9 @@ hc attr theme.active.tab_color '#2B4F0Add'
hc attr theme.active.tab_outer_color '#6C8257dd' hc attr theme.active.tab_outer_color '#6C8257dd'
hc attr theme.active.tab_title_color '#ababab' hc attr theme.active.tab_title_color '#ababab'
hc attr theme.normal.title_color '#898989' hc attr theme.normal.title_color '#898989'
hc attr theme.inner_width 1 hc attr theme.inner_width 5
hc attr theme.inner_color black hc attr theme.inner_color black
hc attr theme.border_width 3 hc attr theme.border_width 5
hc attr theme.floating.border_width 4 hc attr theme.floating.border_width 4
hc attr theme.floating.outer_width 1 hc attr theme.floating.outer_width 1
hc attr theme.floating.outer_color black hc attr theme.floating.outer_color black
@ -179,7 +188,7 @@ hc rule floatplacement=center
#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)' floating=on hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
hc rule title='emacs-run-launcher' floating=on floatplacement=center hook=emacs_launcher hc rule title='emacs-run-launcher' floating=on floatplacement=center
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
hc rule fixedsize floating=on hc rule fixedsize floating=on