Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2023-03-07 13:45:07 +00:00
parent 9463b292c8
commit 1b70d70942
13 changed files with 622 additions and 88 deletions

View File

@@ -35,7 +35,7 @@ done
"$XDG_CONFIG_HOME/bspwm/rules"
# start some services
services=( sxhkd dunst ssh-agent ufwd{,-private,-scn,-fikus} )
services=( sxhkd dunst ssh-agent ufwd{,-private,-scn,-fikus} syncthing mpd )
for s in "${services[@]}"; do
if ! service "$s" status; then
service "$s" start

View File

@@ -7,5 +7,6 @@ while read -r rule _; do bspc rule -r "$rule"; done < <(bspc rule -l)
bspc rule -a 'firefox' desktop=^2 state=tiled
bspc rule -a 'steam_app_359320' desktop=^5
bspc rule -a 'steam_app_397540' desktop=^5
bspc rule -a 'steam_proton' desktop=^5
bspc rule -a 'Steam' desktop=^8
bspc rule -a '*' state=floating

View File

@@ -49,16 +49,14 @@ super + l; l
super + l; {u,s}
ssm lockd stop
# simple hotkeys
# Screenshots
Print
snap -f
shift + Print
snap
control + Print
maim -s | xclip -selection clipboard -t image/png
# Simple
super + {r,p,e,n}
dmenu-extras -l 9 {run,pass,emoji,note}
@@ -84,6 +82,10 @@ shift + {XF86Tools,XF86Launch5,XF86Launch6,XF86Launch7}
control + {XF86Tools,XF86Launch5,XF86Launch6,XF86Launch7}
~/bin/sndbrd-macro -p {8,9,10,11}
# Music
super + m; {t, s, n, p}
mpc {toggle, stop, next, prev}
# Dunst
super + d; {space,c,h}
dunstctl {close-all,context,history-pop}
@@ -93,5 +95,5 @@ super + s; m
pactl set-source-mute jack_in toggle
# Fucking Firefox man
control + q
/bin/true
#control + q
# /bin/true

View File

@@ -42,10 +42,11 @@ panels:
-h
-p
date:
format: '%A, %Y.%m.%d %H:%M:%S'
format: '%A, %Y.%m.%d %H:%M:%S MSK'
offset: '+03:00'
la:
warn_value: 3
crit_value: 4
warn_value: 14
crit_value: 16
www:
hosts:
- de-ber-as20647.anchors.atlas.ripe.net
@@ -54,12 +55,10 @@ panels:
warp:
hosts:
- malganis.priv
- spike.priv
- builder.virt
- builder.priv
xnt:
hosts:
- brilliant.zorg.sh
- ruby.zorg.sh
- access1.infra.erty.sh
- access33.eprod.zorg.sh
- access31.sprod.zorg.sh
memory:

View File

@@ -2,7 +2,7 @@
# vim: ft=sh
service_respawn = always
service_command = "$HOME/bin/lockd" i3lock-extra -s -o ~/pics/lock.png -p -g -- -e -f
service_command = "$HOME/bin/lockd" i3lock-extra -s -o ~/pics/lock.png -p -- -e -f
function pre_start {
notify-send 'ssm' "Starting $service_name; press again to lock."

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env watchman
#!/usr/bin/env ssm
service_command='/usr/bin/ssh-agent'
service_args=( -d -a "/run/user/$UID/ssh-auth.sock" )
service_command = /usr/bin/ssh-agent -d -a "/run/user/$UID/ssh-auth.sock"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env watchman
#!/usr/bin/env ssm
service_tmpfiles=( "$XDG_RUNTIME_DIR/ufwd-private:dir" )

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env watchman
#!/usr/bin/env ssm
service_tmpfiles=( "$XDG_RUNTIME_DIR/scn:dir" )
@@ -6,8 +6,8 @@ service_tmpfiles=( "$XDG_RUNTIME_DIR/scn:dir" )
dirs=( $(find /home/fbt/.local/share/Steam/userdata/22500463/760/remote -name 'screenshots') )
dirs+=( "$XDG_RUNTIME_DIR/scn" )
service_command = /usr/bin/ufwd -c \
service_command = /usr/bin/ufwd -n -c \
$(printf -- '-d %s ' "${dirs[@]}") \
-- -R -t 'screenshot' -A "Screenshots%3B%20$(date +%Y.%m.%d)"
-- -R -t 'screenshot' -A "Screenshots; $(date +%Y.%m.%d)"
service_cgroup_cleanup = 1

View File

@@ -26,7 +26,7 @@
#service_stop_signal = 15
# Enable cgroup-related functions
cgroups = 1
#cgroups = 1
# Refuse to start the service if its cgroup is not empty
service_cgroup_exclusive = 1

View File

@@ -44,7 +44,8 @@ set_misc_path \
"$HOME/games/bin" \
"$HOME/.local/bin" \
"$HOME/.nails/bin" \
"$HOME/.winepx/bin"
"$HOME/.winepx/bin" \
"$HOME/.rvm/bin"
# GPG
GPG_TTY=$(tty)

View File

@@ -44,12 +44,14 @@ if [[ -f "$HOME/wallpaper.png" ]]; then
fi
# Input settings
setxkbmap -layout "ducky-mini(us),ducky-mini(ru)" \
-option "lv3:menu_switch,grp:caps_toggle,grp_led:caps,compose:ralt,terminate:ctrl_alt_bksp"
setxkbmap -layout "us,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'
#xmodmap -e "pointer = 3 2 1"
-e 'keycode 49 = Escape asciitilde' \
-e "pointer = 3 2 1"
xinput --set-prop 22 'libinput Accel Speed' -0.92
#xinput set-button-map 17 3 2 1 4 5 6 7 8 9
# Start a dbus session
if ! [[ "$DBUS_SESSION_BUS_ADDRESS" ]]; then
@@ -62,8 +64,8 @@ export VDPAU_NVIDIA_NO_OVERLAY=1
nvidia-settings -l
nvidia-settings -a InitialPixmapPlacement=2
# Colour temp
xsct 6000
# Warmer colours
xsct 4500
# Custom functions
services() {