summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/sway/config20
-rw-r--r--.snail.bashrc5
-rwxr-xr-xbin/idleify7
3 files changed, 15 insertions, 17 deletions
diff --git a/.config/sway/config b/.config/sway/config
index e023b1f..ee51b71 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -10,26 +10,12 @@ set $menu bemenu-run | xargs swaymsg exec --
output * bg /home/rebecca/art/img/lagana.png stretch
-### Idle configuration
-#
-# Example configuration:
-#
-# exec swayidle -w \
-# timeout 300 'swaylock -f -c 000000' \
-# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
-# # before-sleep 'swaylock -f -c 000000'
-#
-# This will lock your screen after 300 seconds of inactivity, then turn off
-# your displays after another 300 seconds, and turn your screens back on when
-# resumed. It will also lock your screen before your computer goes to sleep.
-
input * {
xkb_layout "gb,gb"
xkb_variant "dvorak,"
xkb_options "grp:shifts_toggle,caps:swapescape,compose:ralt"
}
-
bindsym $mod+Return exec exec $term
bindsym $mod+Shift+q kill
bindsym $mod+d exec $menu
@@ -144,9 +130,7 @@ set $lock swaylock -f --indicator-radius 400 --indicator-thickness 20 --ring-col
bindsym $mod+o exec $lock
bindsym $mod+Shift+o exec $lock && zzz
-exec swayidle -w \
- timeout 120 $lock \
- timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
+exec /home/rebecca/bin/idleify
bindsym XF86AudioRaiseVolume exec 'amixer set Master 5%+'
bindsym XF86AudioLowerVolume exec 'amixer set Master 5%-'
@@ -159,6 +143,8 @@ client.focused #663399 #663399 #ffffff
bindsym Print exec slurp|grim -g- -|feh - -.wG -A'[upload]/home/rebecca/bin/rupload -x png %F' --action1 '[copy]wl-copy -t image/png <%F'
+bindsym $mod+BackSpace exec dunstctl close-all
+
exec wlsunset -T 6500 -t 3200 -L -2 -l 53
include /etc/sway/config.d/*
diff --git a/.snail.bashrc b/.snail.bashrc
index bdbd517..0b367d6 100644
--- a/.snail.bashrc
+++ b/.snail.bashrc
@@ -19,6 +19,11 @@ shed () {
ln -sfT "$PWD" ~/shed/current
}
+gopr() {
+ d="$HOME/pr/$1"
+ mkdir -p "$d"
+ workin "$d"
+}
. ~/bin/rws
gowork
diff --git a/bin/idleify b/bin/idleify
new file mode 100755
index 0000000..7cde7bb
--- /dev/null
+++ b/bin/idleify
@@ -0,0 +1,7 @@
+#!/bin/sh
+lock="swaylock -f --indicator-radius 400 --indicator-thickness 20 --ring-color df73ff --key-hl-color 663399 -K -c 000000"
+
+exec swayidle -w \
+ timeout 120 "$lock" \
+ timeout 300 'swaymsg "output * power off"' \
+ resume 'swaymsg "output * power on"'