Skip to content

Commit

Permalink
minor: fixes, and updates
Browse files Browse the repository at this point in the history
- added lockscript to sxhkd
- added ffmpeg to dependency list (install.sh)
- fix bspwm monitor
  • Loading branch information
Deathemonic committed Aug 27, 2023
1 parent 4597728 commit a05711f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 29 deletions.
15 changes: 5 additions & 10 deletions bspwm/bspwmrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#!/bin/sh

# name=1
# for monitor in $(bspc query -M); do
# bspc monitor "$monitor" -n "$name" -d '1' '2' '3' '4' '5' '6' '7' '8'
# name=$((name + 1))
# done

xrandr --output VGA1 --primary --auto
xrandr --output LVDS1 --off

bspc monitor VGA1 -d '1' '2' '3' '4' '5' '6' '7' '8'
name=1
for monitor in $(bspc query -M); do
bspc monitor "$monitor" -n "$name" -d '1' '2' '3' '4' '5' '6' '7' '8'
name=$((name + 1))
done

bspc config border_width 0
bspc config window_gap 10
Expand Down
38 changes: 21 additions & 17 deletions bspwm/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ super + shift + {s,r}
super + g
$(xdg-user-dir CONFIG)/cat-configs/bin/utilities/color-picker.sh

# Lockscreen
super + shift + alt + L
$(xdg-user-dir CONFIG)/cat-configs/bin/utilities/lockscreen.sh

# Take a screenshot
Print
$(xdg-user-dir CONFIG)/cat-configs/bin/utilities/screenshot.sh --shot
Expand Down Expand Up @@ -66,23 +70,23 @@ super + Escape
# Window Manager
# Close App
super + {_,shift + }x
bspc node -{c,k}
bspc node -{c,k}

# Reload Keybindings
super + Escape
pkill -USR1 -x sxhkd
pkill -USR1 -x sxhkd

# Kill window
ctrl + alt + Escape
xkill

# Quit/Restart sweetconfigs-xorg
ctrl + shift + {q,r}
bspc {quit,wm -r}
bspc {quit,wm -r}

# Split horizontal, vertical or cancel
super + {h,v,q}
bspc node -p {east,south,cancel}
bspc node -p {east,south,cancel}

# Toggle fullscreen
F11
Expand All @@ -98,56 +102,56 @@ super + alt + {p,t}

# Set the node flags
super + ctrl + {m,x,y,z}
bspc node -g {marked,locked,sticky,private}
bspc node -g {marked,locked,sticky,private}

# Send the window to another edge of the screen
super + {_,shift + }{Left,Down,Up,Right}
bspc node -{f,s} {west,south,north,east}
bspc node -{f,s} {west,south,north,east}

# Change focus to next window, including floating window
alt + {_,shift + }Tab
bspc node -f {next.local,prev.local}
bspc node -f {next.local,prev.local}

# Switch workspace
ctrl + alt + {Left,Right}
bspc desktop -f {prev.local,next.local}
bspc desktop -f {prev.local,next.local}

# Switch to last opened workspace
super + {Tab,grave}
bspc {node,desktop} -f last
bspc {node,desktop} -f last

# Send focused window to another workspace
super + {_,shift + }{1-8}
bspc {desktop -f,node -d} '^{1-8}'
bspc {desktop -f,node -d} '^{1-8}'

# Expanding windows
super + control + {Left,Right,Up,Down}
bspc node -z {left -20 0,right 20 0,top 0 -20,bottom 0 20}
bspc node -z {left -20 0,right 20 0,top 0 -20,bottom 0 20}

# Shrinking windows
super + alt + {Left,Right,Up,Down}
bspc node -z {left 20 0,right -20 0,top 0 20,bottom 0 -20}
bspc node -z {left 20 0,right -20 0,top 0 20,bottom 0 -20}

# Move floating windows
alt + shift + {Left,Down,Up,Right}
bspc node -v {20 0,0 20,0 -20,-20 0}
bspc node -v {20 0,0 20,0 -20,-20 0}

# Hide/Unhide Window
super + shift + i
winmask

# Preselect the direction
super + ctrl + alt +{Left,Right,Up,Down}
bspc node -p {west,east,north,south}
bspc node -p {west,east,north,south}

# Preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
bspc node -o 0.{1-9}

# Cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
bspc node -p cancel

# Cancel the preselection for the focused desktop
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ packages="bspwm sxhkd \
gtk3 gtk4 gtk-engine-murrine gnome-themes-extra \
pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber alsa-utils pamixer \
feh brightnessctl bluez-utils i3lock-color \
yad xclip stalonetray maim gpick imagemagick \
yad xclip stalonetray maim gpick imagemagick ffmpeg \
nerd-fonts-jetbrains-mono ttf-jetbrains-mono ttf-sarasa-gothic ttf-roboto \
mpd mpdris2 ncmpcpp playerctl \
polkit-gnome xfce4-power-manager \
libnotify notify-send-py \
xdg-utils xdg-user-dirs xdo xsettingsd \
python3 pypy3 python-gobject"
python3 python-gobject"

clear

Expand Down

0 comments on commit a05711f

Please sign in to comment.