Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-07-29 15:11:03 +03:00
parent a19db08791
commit cf2c2e7645
22 changed files with 46 additions and 206 deletions

View File

@ -46,7 +46,6 @@ bspc rule -a Firefox:Navigator state=tiled desktop=^2
bspc rule -a \*:Hearthstone.exe desktop=^5
bspc rule -a \* state=floating
# start some services
services=( sxhkd dunst ssh-agent )
for s in "${services[@]}"; do

View File

@ -2,71 +2,61 @@
# bspwm hotkeys
#
super + {_,shift + } w
bspc node {-c,-k}
# general
super + w; {c,k}
bspc node -{c,k}
super + q
bspc node -t '~fullscreen'
super + {j,k}
super + w; {n,p}
bspc node -f {next,prev}.local
control + {h,j,k,l}
bspc node {@east -r -32,@south -r +32,@south -r -32,@east -r +32}
super + w; {t,f,T,F}
bspc node -t {tiled,floating,pseudo_tiled,fullscreen}
super + {_,shift + } space
bspc node -t '~'{tiled,floating}
super + w; d; {0-9,h}
bspc node -d {0-9,h}
super + Return
bspc node -s biggest
super + w; s; {Left,Up,Right,Down}
bspc node --presel-dir '~'{west,north,east,south}
super + {1-9,h}
bspc desktop -f {1-9,h}
super + w; {0-9,h}
bspc desktop -f {0-9,h}
super + shift + {1-9,h}
bspc node -d {1-9,h}
super + t
super + w; space
bspc desktop -l next
super + shift + t
bspc node -t '~pseudo_tiled'
super + w; z
ssm lockd stop
super + x
terminal
# simple hotkeys
Print
snap -f
super + {r,u,p}
dmenu-extras -l 9 {run,bmark,pass}
shift + Print
snap
super + z
ssm lockd lock
super + shift + z
ssm lockd toggle
super + {r,p}
dmenu-extras -l 9 {run,pass}
Print
snap -f
super + x
terminal
super + {Left,Up,Right,Down}
bspc node --presel-dir '~'{west,north,east,south}
super + {j,k}
bspc node -f {prev,next}.local
super + {_,shift + } c
win-hd-center {1280x720,854x480}
super + q
bspc node -c
super + {a,s,n,p}
# mpd
super + m; {a,s,n,p}
mpc {play,stop,next,prev}
super + bracketright
bspc node '@/' -R 90
# Sound
super + {comma,period}
amixer -c 0 set PCM 2dB{-,+}
super + f
bspc rule -a \* -o state=floating
super + comma
amixer -c 0 set PCM 2dB-
super + period
amixer -c 0 set PCM 2dB+
shift + control + {1-9}
echo {11,12,13,14,15,16,17,18,19} > /tmp/penis
# Fucking Firefox man
control + q
/bin/true

View File

@ -160,18 +160,18 @@
# Xev might be helpful to find names for keys.
# Close notification.
close = ctrl+space
#close = ctrl+space
# Close all notifications.
close_all = ctrl+shift+space
close_all = ctrl+mod4+space
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1".
history = mod4+d
history = ctrl+mod4+l
# Context menu.
context = mod4+shift+d
context = ctrl+mod4+c
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.

View File

@ -3,7 +3,7 @@ font = xos4 terminus 10
#allow_bold = false
cursor_blink = off
cursor_shape = ibeam
browser = browser
browser = sx-open
mouse_autohide = true
audible_bell = true

View File

@ -1,4 +0,0 @@
#!/usr/bin/env watchman
service_command='/bin/compton'
service_args=( --vsync opengl -f -D 3 -e 1.0 )

View File

@ -1,4 +0,0 @@
#!/usr/bin/env watchman
#service_respawn='true'
service_command='/usr/bin/dunst'

View File

@ -1,4 +0,0 @@
#!/bin/env watchman
service_command='/usr/bin/jackd'
service_args=( -d alsa )

View File

@ -1,30 +0,0 @@
#!/usr/bin/env ssm
# vim: ft=sh
service_respawn='true'
service_command="$HOME/bin/lockd"
service_args=( i3lock-extra -s -o ~/pics/lock.png -g -p )
function _lock {
kill -USR1 "$service_pid"
}
function lock {
status || {
start; sleep 1
"$0" "$service_name" lock
return "$?"
}
_lock
}
function toggle {
if status; then
out=$( "$0" "$service_name" stop 2>&1 )
notify-send "ssm" "$out"
else
out=$( "$0" "$service_name" start 2>&1 )
notify-send "ssm" "$out"
fi
}

View File

@ -1,21 +0,0 @@
#!/usr/bin/env watchman
#service_respawn='true'
service_command='/home/fbt/bin/moltenbar'
service_depends_ready=( compton )
post_start() {
# Die if the thing didn't start
timer 5 nullexec xdo id -a moltenbar || return 1
# Set the layer on which lemonbar resides
xdo above -t $( xdo id -n root ) $( xdo id -a moltenbar )
# Set the top badding for bspwm
bspc config top_padding $(( 14 + 9 )) &>/tmp/debug.log
}
pre_stop() {
bspc config top_padding 0
}

View File

@ -1,4 +0,0 @@
#!/usr/bin/env watchman
#service_respawn='true'
service_command="$HOME/bin/mpc-notify"

View File

@ -1,8 +0,0 @@
#!/usr/bin/env ssm
service_tmpfiles=( "/run/user/$UID/mpd:dir" )
# service_respawn=false
service_command='/usr/bin/mpd'
service_args=( --no-daemon -v )
post_start() { ready; }

View File

@ -1,21 +0,0 @@
#!/usr/bin/env watchman
privoxy_configfile="$HOME/.config/privoxy/config"
service_respawn='true'
service_command='/usr/bin/privoxy'
service_args=( --no-daemon "$privoxy_configfile" )
privoxy::configtest() {
"$service_command" --config-test "${service_args[@]}"
}
restart() {
privoxy::configtest || {
watchman.err "Config test failed, not restarting!"
return 1
}
stop
start
}

View File

@ -1,14 +0,0 @@
#!/bin/env watchman
service_depends=( jackd )
service_command='/usr/bin/pulseaudio'
service_args=(
--realtime=false
--exit-idle-time=-1
-L module-jack-sink
-L module-jack-source
-L module-native-protocol-tcp
)
stop () { "$service_command" -k; }

View File

@ -1,5 +0,0 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command='/usr/bin/crond'
service_args=( -n -f ~/.config/crontab )

View File

@ -1,13 +0,0 @@
#!/usr/bin/bash
[[ $PROXY_USER ]] || PROXY_USER='proxy'
[[ $PROXY_HOST ]] || PROXY_HOST='malganis.priv'
service_respawn=true
service_command=( /usr/bin/ssh -i ~/.ssh/proxy/id_ecdsa -ND 8080 "$PROXY_USER@$PROXY_HOST" )
function info {
printf 'Name: %s\n' "$service_name"
printf 'Command: %s\n' "${service_command[*]}"
(( service_respawn )) && printf 'Respawn: yes\n'
}

View File

@ -1,4 +0,0 @@
#!/usr/bin/env watchman
service_command='/usr/bin/ssh-agent'
service_args=( -d -a "/tmp/${USER}-ssh-auth.sock" )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env watchman
service_respawn='true'
service_command='/usr/bin/sxhkd'
service_reload_signal='USR1'

View File

@ -1,4 +0,0 @@
#!/bin/env watchman
#service_respawn='true'
service_command='/usr/bin/syncthing'

View File

@ -1,4 +0,0 @@
#!/bin/env watchman
service_command='/usr/bin/transmission-daemon'
service_args=( -f )

View File

@ -1,5 +0,0 @@
#!/usr/bin/env watchman
#service_respawn='true'
service_command='/usr/bin/ufwd'
service_args=( -n -c -- -p )

View File

@ -44,10 +44,11 @@ if [[ -f "$HOME/wallpaper.png" ]]; then
fi
# Input settings
setxkbmap "min(us),min(ru)" -option "lv3:rwin_switch,grp:caps_toggle,grp_led:caps,compose:ralt,terminate:ctrl_alt_bksp"
setxkbmap -layout "ducky-mini(us),ducky-mini(ru)" \
-option "lv3:menu_switch,grp:caps_toggle,grp_led:caps,compose:ralt,terminate:ctrl_alt_bksp"
xmodmap -e 'remove lock = Caps_Lock' \
-e 'keycode 135 = KP_Insert' \
-e 'keycode 49 = Escape asciitilde'
-e 'keycode 135 = KP_Insert' \
-e 'keycode 49 = Escape asciitilde'
# Start a dbus session
if ! [[ "$DBUS_SESSION_BUS_ADDRESS" ]]; then

View File

@ -1,6 +1,6 @@
# A simple dwm session
PATH+=":$HOME/.config/bspwm/bin"
start_session() {
session_start() {
exec bspwm
}