summaryrefslogtreecommitdiff
path: root/.config/sway/config.d
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-04-05 15:11:06 -0400
committerFreya Murphy <freya@freyacat.org>2024-04-05 15:11:06 -0400
commit7d1caf4249319180f637cd3d1a1f7d9a5bffe141 (patch)
tree44b167845f0dbb42b3c6a3a1d6e492318d5aa92b /.config/sway/config.d
parentupdate init script and configs (diff)
downloaddotfiles-arch-7d1caf4249319180f637cd3d1a1f7d9a5bffe141.tar.gz
dotfiles-arch-7d1caf4249319180f637cd3d1a1f7d9a5bffe141.tar.bz2
dotfiles-arch-7d1caf4249319180f637cd3d1a1f7d9a5bffe141.zip
hi
Diffstat (limited to '.config/sway/config.d')
-rw-r--r--.config/sway/config.d/idle4
-rw-r--r--.config/sway/config.d/keybinds13
-rw-r--r--.config/sway/config.d/scratch4
3 files changed, 11 insertions, 10 deletions
diff --git a/.config/sway/config.d/idle b/.config/sway/config.d/idle
index fb13083..2b239fe 100644
--- a/.config/sway/config.d/idle
+++ b/.config/sway/config.d/idle
@@ -1,5 +1,5 @@
# Turn off display after tiemout
exec swayidle -w \
- timeout 300 'swaylock -f -c 14171d' \
+ timeout 300 'swaylock' \
timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
- before-sleep 'swaylock -f -c 14171d'
+ before-sleep 'swaylock'
diff --git a/.config/sway/config.d/keybinds b/.config/sway/config.d/keybinds
index ba2609e..214be98 100644
--- a/.config/sway/config.d/keybinds
+++ b/.config/sway/config.d/keybinds
@@ -13,13 +13,10 @@ bindsym $mod+d exec $menu
bindsym $mod+w exec $browser
# Lock screen
-bindsym $mod+Shift+l exec $lock
+bindsym $mod+l exec $lock
# Exit sway
-bindsym Ctrl+Alt+Delete exec killall sway
-
-# Power menu
-bindsym $mod+L exec killall wlogout || wlogout --css ~/.config/desktop-common/logout.d/power/style.css -l ~/.config/desktop-common/logout.d/power/layout
+bindsym $mod+Shift+l exit
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@@ -49,12 +46,12 @@ bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# Screenshot
-bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -t 3000 "Sway" "Screenshot copied to clipboard"
+bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -t 3000 "Sway" "Screenshot copied to clipboard"
bindsym Print exec grim - | wl-copy -t iamge/png && notify-send -t 3000 "Sway" "Full screen copied to clipboard"
bindsym Shift+Print exec slurp -p | grim -g - - | convert - txt:- | tail -n 1 | awk '{print $3}' | wl-copy
# Michelsoft Binbows
bindsym Ctrl+$mod+Shift+L exec $browser "https://linkedin.com"
bindsym Ctrl+$mod+Shift+S exec $term -e sl
-bindsym Ctrl+$mod+Shift+T exec electron25 "https://twitter.com"
-bindsym Ctrl+$mod+Shift+M exec electron25 "https://www.tumblr.com"
+bindsym Ctrl+$mod+Shift+T exec electron28 "https://twitter.com"
+bindsym Ctrl+$mod+Shift+M exec electron28 "https://www.tumblr.com"
diff --git a/.config/sway/config.d/scratch b/.config/sway/config.d/scratch
index 0337319..bdafcf6 100644
--- a/.config/sway/config.d/scratch
+++ b/.config/sway/config.d/scratch
@@ -7,8 +7,12 @@ bindsym $mod+Shift+minus move scratchpad
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
+exec ~/.config/sway/scripts.d/scratchpads.sh
+
for_window [app_id="scratch_term"] move scratchpad, resize set 960 640
for_window [app_id="scratch_htop"] move scratchpad, resize set 960 640
+for_window [app_id="scratch_calc"] move scratchpad, resize set 960 640
bindsym $mod+y exec ~/.config/sway/scripts.d/scratchpads.sh scratch_term zsh
bindsym $mod+h exec ~/.config/sway/scripts.d/scratchpads.sh scratch_htop htop
+bindsym $mod+c exec ~/.config/sway/scripts.d/scratchpads.sh scratch_calc matrix