Further updates :)

This commit is contained in:
2021-06-05 01:17:37 +02:00
parent 59e46cffc6
commit ed4c95d7f4
10 changed files with 374 additions and 71 deletions

View File

@@ -1,23 +1,32 @@
# bapwm hotkeys
#
###############################################################################################################################
# bspwm hotkeys
###############################################################################################################################
# Cleanly quit bspwm
super + shift + q
bspc quit 1 && pkill polybar
# Show keybindings
# Show this file
super + F1
$TERMINAL -e keybindings.sh
alacritty -e bat ~/.config/sxhkd/sxhkdrc
#
# Window manipulation
# ______________
# BSPWM WINDOW STATES:
#tiled - Its size and position are determined by the window tree.
#pseudo_tiled - A tiled window that automatically shrinks but doesnt stretch beyond its floating size.
#floating - Can be moved/resized freely. Although it doesnt use any tiling space, it is still part of the window tree.
#fullscreen - Fills its monitor rectangle and has no borders.
# Close window
super + x
bspc node -c
bspc node -c
# Kill window
super + shift + x
bspc node -k
bspc node -k
# Toggle tiling mode of window
super + shift + t
@@ -30,10 +39,10 @@ super + ctrl + t
# Force all windows of the desktop to float and arrange them
super + ctrl + shift + t
bspcp float
# Toggle fullscreen
super + shift + f
bspc node -t {fullscreen,tiled}
super + shift + f
bspc node -t {fullscreen,tiled}
# Try to keep size and position of the selected window
super + o
@@ -45,7 +54,7 @@ super + i
# Lock a window from closing
super + Escape
bspc node -g locked
bspc node -g locked
### Map or unmap windows (functional equivalent of "minimize")
super + c
@@ -59,18 +68,18 @@ super + ctrl + c
#
# Window moving and splitting
# ______________
# ______________
# Autopresel (split window in its largest dimension)
ctrl + space
auto-presel
# Presel window for splitting in certain direction
alt + ctrl + {a,s,w,d}
bspc node -p \~{west,south,north,east} -i
#alt + ctrl + {h,j,k,l}
# bspc node -p \~{west,south,north,east}
alt + ctrl + {h,j,k,l}
bspc node -p \~{west,south,north,east}
alt + ctrl + {Left,Down,Up,Right}
bspc node -p \~{west,south,north,east}
@@ -81,7 +90,7 @@ super + ctrl + space
# Presel the desktop for splitting in certain direction
# alt + shift + {a,s,w,d}
# bspc node @/ -p \~{west,south,north,east}
#
#
# alt + shift + {h,j,k,l}
# bspc node @/ -p \~{west,south,north,east}
@@ -90,7 +99,7 @@ super + ctrl + space
# Set splitting ratio of windows
alt + ctrl + {1-9}
bspc node -o 0.{1-9}
# Move current window to largest space or preselected area if there is one.
super + Return
windowpromoter
@@ -98,7 +107,7 @@ super + Return
# Create a new "master area", splitting the whole desktop instead of just windows.
alt + Return
bspc node -n @/
# go (Shift=move) to desktop (and focus the monitor that the desktop is located on. Bspwm style)
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} ^{1-9,10}
@@ -118,7 +127,7 @@ super + {_,shift + }{1-9,0}
# Select previous / next desktop
super + {m,n}
bspc desktop -f {prev.occupied,next.occupied}
bspc desktop -f {prev.occupied,next.occupied}
# cycle windows
alt + {_,shift + }Tab
@@ -127,7 +136,7 @@ alt + {_,shift + }Tab
# Go to specific window
super + Tab
WindowSelector
#Focus windows by direction, works with multihead
super + {a,s,w,d}
focusmover {west,south,north,east}
@@ -137,16 +146,16 @@ super + {a,s,w,d}
super + {Left,Down,Up,Right}
focusmover {west,south,north,east}
# Move tiled windows. Moving a tiled window to
# preselected one moves into preselection instead.
# Move tiled windows. Moving a tiled window to
# preselected one moves into preselection instead.
# Moving out of the screen should move the window to next monitor if possible
super + shift + {a,s,w,d}
windowgrabber {west,south,north,east}
#super + shift + {h,j,k,l}
# windowgrabber {west,south,north,east}
# Different style of movement: transplant into window in chosen direction
super + shift + {Left,Down,Up,Right}
euclid_mover {west,south,north,east}
@@ -157,18 +166,18 @@ super + ctrl + {a,s,w,d}
#super + ctrl + {h,j,k,l}
# bspwm_resize.sh {west,south,north,east}
super + ctrl + {Left,Down,Up,Right}
bspwm_resize.sh {west,south,north,east}
#
# Layout manipulation/desktop level controls
# ______________
# ______________
# Toggle monocle mode
super + f
super + f
bspc desktop -l next
# Balance tree
super + b
bspc node @/ -B
@@ -176,7 +185,7 @@ super + b
# Balance brother node. If you do this on biggest window of the desktop, it usually means balancing all windows with except the biggest.
super + alt + b
bspc node @brother -B
# Undo balancing (equalize windows)
super + ctrl + b
bspc node @/ -E
@@ -188,7 +197,7 @@ alt + b
# Mirror and flip leaves of tree
super + {comma,period}
bspc node @/ -F {horizontal,vertical}
# Rotate leaves of tree
super + shift + {comma,period}
bspc node @/ -R {90,270}
@@ -205,12 +214,12 @@ super + button{4,5}
# __________________
~button1
DidIClickDesktop.sh && gapgrab
DidIClickDesktop.sh && gapgrab
~button2
DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/BspwmDesktopMenui
#DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/BspwmWindowMenui
~button3
DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/LaunchMenu
@@ -219,7 +228,7 @@ super + button{4,5}
# DidIClickDesktop.sh && bspc desktop -f next
#~button5
# DidIClickDesktop.sh && bspc desktop -f prev
### Add or remove desktops by scrolling
super + ctrl + button5
bspcp dsktp rm
@@ -227,10 +236,10 @@ super + ctrl + button5
super + ctrl + button4
bspcp dsktp add
# Spawn applications popup menu and manually tile selected
# Spawn applications popup menu and manually tile selected
# app where your mouse was when you opened the menu. Smartsplit only chooses
# biggest dimension of the window, MouseLaunch only cares which edge is closer.
# mod5 is alt_gr (first key right from space) on most keyboards.
# mod5 is alt_gr (first key right from space) on most keyboards.
mod5 + @button1
MouseLaunch ; mygtkmenui -- .config/GTKmenu/LaunchMenu
# smartsplit ; dboxmenu
@@ -245,7 +254,7 @@ mod1 + @button1
#
# Touchpad "gestures" (depend on your touchpad driver, very likely to be unavailable)
#_____________________
#
# spawn programs
#
@@ -255,9 +264,10 @@ super + space
rofi -modi drun,run,window,calc -show drun
#dmenu_recent -fn 'xos4 Terminus:size=15' -i -l 14 -w 600 -y $PANEL_HEIGHT
# Triggered by jus tapping super
# Triggered by jus tapping super
super + shift + space
rofi -show run
#xlunch --
gnome-pie -o 460
#super + p
# dmenu_recent -h $PANEL_HEIGHT -fn 'xos4 Terminus:size=15' -i
@@ -269,13 +279,13 @@ super + z
super + shift + z
open-terminal-here
super + r
rofi -modi drun,run,window,calc -show drun
rofi -modi drun,run,window,calc -show run
super + shift + b
$BROWSER
super + e
thunar
@@ -286,7 +296,7 @@ super + shift + e
Print
scrot
#
# Media keys
#
@@ -307,16 +317,25 @@ XF86AudioLowerVolume
XF86AudioMute
amixer set Master toggle
XF86MonBrightnessDown
xbacklight -dec 5
xbacklight -dec 5
XF86MonBrightnessUp
xbacklight -inc 5
XF86ScreenSaver
loginctl lock-session
XF86Sleep
systemctl suspend
XF86Display
workspaces_multimonitor
shift + XF86Display
arandr
XF86AudioMicMute
amixer set Capture toggle
@@ -326,15 +345,18 @@ XF86Launch1
super + shift + Escape
pkill -USR1 -x sxhkd
alt + space #My personal preference
alt + space
rofi -modi drun,run,window,calc -show drun
super + shift + s
flameshot gui
# In case bspwmrc fails to execute/you wish have plugged in a new monitor
super + shift + r
bspwmrc
#edit this file
alt + ctrl + space
$GUI_EDITOR ~/.config/sxhkd/sxhkdrc
vim ~/.config/sxhkd/sxhkdrc
# Toggle compositing
super + ctrl + alt + space
{pkill picom ,\
@@ -343,3 +365,11 @@ super + ctrl + alt + space
# Remove receptacles
super + BackSpace
for i in $(bspc query -N -n .leaf.!window.local); do bspc node $i -k; done
###############################################################################################################################
# VIDEO-RELATED HOTKEYS
###############################################################################################################################
# Rotate the screen. WARNING: Laggy.
mod5 + {Left,Down,Up,Right}
xrandr --output LVDS1 --rotate {left,inverted,normal,right}