mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 17:57:47 +02:00
Add base configuration for bspwm and sxhkd
This commit is contained in:
parent
efd9fc8858
commit
9392729040
14
dotfiles/.config/bspwm/bspwmrc
Normal file
14
dotfiles/.config/bspwm/bspwmrc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
sxhkd &
|
||||||
|
|
||||||
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||||||
|
|
||||||
|
bspc config border_width 15
|
||||||
|
bspc config window_gap 20
|
||||||
|
|
||||||
|
bspc config split_ratio 0.52
|
||||||
|
bspc config borderless_monocle true
|
||||||
|
bspc config gapless_monocle true
|
||||||
|
|
||||||
|
bspc rule -a mpv state=floating
|
108
dotfiles/.config/sxhkd/sxhkdrc
Normal file
108
dotfiles/.config/sxhkd/sxhkdrc
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
##################################################################################
|
||||||
|
#
|
||||||
|
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
||||||
|
# Copyright (C) 2017 Donovan Glover
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
##################################################################################
|
||||||
|
|
||||||
|
# Open a new terminal window
|
||||||
|
super + Return
|
||||||
|
termite
|
||||||
|
|
||||||
|
# Reload sxhkd (applies new keybindings, etc.)
|
||||||
|
super + Escape
|
||||||
|
pkill -USR1 -x sxhkd
|
||||||
|
|
||||||
|
# Close the focused window
|
||||||
|
super + q
|
||||||
|
bspc node -c
|
||||||
|
|
||||||
|
# Force close the focused window
|
||||||
|
super + shift + q
|
||||||
|
bspc node -k
|
||||||
|
|
||||||
|
# Switch to the window in a certain direction
|
||||||
|
super + {h,j,k,l}
|
||||||
|
bspc node -f {west,south,north,east}
|
||||||
|
|
||||||
|
# Swap a window with another in a certain direction
|
||||||
|
super + shift + {h,j,k,l}
|
||||||
|
bspc node -s {west,south,north,east}
|
||||||
|
|
||||||
|
# Focus the window under the cursor
|
||||||
|
super + @space
|
||||||
|
bspc node -f pointed
|
||||||
|
|
||||||
|
# Toggle the "sticky" state of a window
|
||||||
|
# (i.e. the window follows you no matter
|
||||||
|
# which workspace you choose)
|
||||||
|
# Useful for videos, etc.
|
||||||
|
super + x
|
||||||
|
bspc node -g sticky
|
||||||
|
|
||||||
|
# Move to the next desktop on the current monitor
|
||||||
|
alt + Tab
|
||||||
|
bspc desktop -f next.local
|
||||||
|
|
||||||
|
# Move to the previous desktop on the current monitor
|
||||||
|
alt + shift + Tab
|
||||||
|
bspc desktop -f prev.local
|
||||||
|
|
||||||
|
# Focus the last window you used
|
||||||
|
# Useful to easily go back and forth
|
||||||
|
# between windows
|
||||||
|
super + g
|
||||||
|
bspc node -f last
|
||||||
|
|
||||||
|
# Focus the last desktop you used
|
||||||
|
# Useful to easily go back and forth
|
||||||
|
# between desktops
|
||||||
|
alt + a
|
||||||
|
bspc desktop -f last
|
||||||
|
|
||||||
|
# Focus a certain desktop
|
||||||
|
super + {1-9,0}
|
||||||
|
bspc desktop -f '^{1-9,10}'
|
||||||
|
|
||||||
|
# Send a window to a certain desktop
|
||||||
|
super + shift + {1-9,0}
|
||||||
|
bspc node -d '^{1-9,10}'
|
||||||
|
|
||||||
|
# Change the window mode to pseudo_tiled
|
||||||
|
# This floats the window in the area it occupies
|
||||||
|
# and automatically centers it
|
||||||
|
super + t
|
||||||
|
bspc noded -t pseudo_tiled
|
||||||
|
|
||||||
|
# Change the window mode to tiled (default)
|
||||||
|
super + shift + t
|
||||||
|
bspc node -t tiled
|
||||||
|
|
||||||
|
# Change the window mode to floating
|
||||||
|
# This is the equivalent of a floating window in i3
|
||||||
|
super + @space
|
||||||
|
bspc node -t floating
|
||||||
|
|
||||||
|
# Change the window mode to fullscreen
|
||||||
|
super + f
|
||||||
|
bspc node -t fullscreen
|
||||||
|
|
||||||
|
# Toggle between "tiled" and "fullscreen"
|
||||||
|
# monocle mode
|
||||||
|
super + shift + f
|
||||||
|
bspc desktop -l next
|
||||||
|
|
||||||
|
# vim:ft=sxhkdrc
|
Loading…
x
Reference in New Issue
Block a user