summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-17 04:13:56 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-17 04:13:56 -0700
commitffb920179648bd4fdde1eb8b2e8b8e068fb4eb4b (patch)
treeca1288811f256bb6fbc4641d0b109e26c58f06a1
parent5e82a7cfefcab1bed061d505d097fe4a726d43bb (diff)
Semi config bspwm and sxhkdrc
-rwxr-xr-x.config/bspwm/bspwmrc35
-rw-r--r--.config/sxhkd/sxhkdrc32
2 files changed, 40 insertions, 27 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index ab87d7f..db9b707 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -1,18 +1,27 @@
-#! /bin/sh
+#!/bin/sh
+# Check if sxhkd is installed, I guess,
+# because bspwm doesn't have keybindings by default.
pgrep -x sxhkd > /dev/null || sxhkd &
-bspc monitor -d I II III IV V VI VII VIII IX X
+# Multihead.
+if [ $(hostname) == "arch" ]; then
+ bspc monitor DP-0 -d I II III IV V
+ bspc monitor HDMI-0 -d VI VII VIII IX X
+else
+ bspc monitor -d I II III IV V VI VII VIII IX X
+fi
-bspc config border_width 2
-bspc config window_gap 12
+# General config.
+bspc config border_width 5
+bspc config window_gap 5
+bspc config split_ratio 0.52
+bspc config borderless_monocle true
+bspc config gapless_monocle true
-bspc config split_ratio 0.52
-bspc config borderless_monocle true
-bspc config gapless_monocle true
-
-bspc rule -a Gimp desktop='^8' state=floating follow=on
-bspc rule -a Chromium desktop='^2'
-bspc rule -a mplayer2 state=floating
-bspc rule -a Kupfer.py focus=on
-bspc rule -a Screenkey manage=off
+# Window rules.
+# bspc rule -a Gimp desktop='^8' state=floating follow=on
+# bspc rule -a Chromium desktop='^2'
+# bspc rule -a mplayer2 state=floating
+# bspc rule -a Kupfer.py focus=on
+# bspc rule -a Screenkey manage=off
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 7528afb..46fa323 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -1,16 +1,16 @@
#
-# wm independent hotkeys
+# General keybinds.
#
-# terminal emulator
+# Terminal emulator.
super + Return
- urxvt
+ alacritty
-# program launcher
-super + @space
- dmenu_run
+# Program launcher.
+super + d
+ i3-dmenu-desktop
-# make sxhkd reload its configuration files:
+# Reload sxhkd config.
super + Escape
pkill -USR1 -x sxhkd
@@ -18,13 +18,17 @@ super + Escape
# bspwm hotkeys
#
-# quit/restart bspwm
-super + alt + {q,r}
- bspc {quit,wm -r}
-
-# close and kill
-super + {_,shift + }w
- bspc node -{c,k}
+# Quit/restart bspwm.
+super + shift + r
+ bspc wm -r
+# super + shift + {q,r}
+# bspc {quit,wm -r}
+
+# Close and kill.
+super + shift + q
+ bspc node -k
+# super + {_,shift + }w
+# bspc node -{c,k}
# alternate between the tiled and monocle layout
super + m