From ddbc36926df9dfeb61c44cc2d12b8c527fc78e64 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 3 Jan 2024 10:42:17 +0100 Subject: [PATCH 1/3] screens: Add screen 0 --- .config/i3/config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index fd40ab6..9978c28 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -102,6 +102,7 @@ bindsym $mod+q focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. +set $ws0 "0" set $ws1 "1" set $ws2 "2" set $ws3 "3" @@ -116,6 +117,7 @@ set $ws11 "11" set $ws12 "12" # switch to workspace +bindsym $mod+grave workspace $ws0 bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 @@ -130,6 +132,7 @@ bindsym $mod+minus workspace $ws11 bindsym $mod+equal workspace $ws12 # move focused container to workspace +bindsym $mod+Shift+grave move container to workspace $ws0 bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 @@ -271,13 +274,14 @@ bar { } } +workspace $ws0 output $screen1 workspace $ws1 output $screen1 workspace $ws2 output $screen1 workspace $ws3 output $screen1 workspace $ws4 output $screen1 workspace $ws5 output $screen1 -workspace $ws6 output $screen1 +workspace $ws6 output $screen2 workspace $ws7 output $screen2 workspace $ws8 output $screen2 workspace $ws9 output $screen2 From 65f328d09f72b635f659d8dd04ece8cb60760418 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 3 Jan 2024 10:42:55 +0100 Subject: [PATCH 2/3] dunst: Improve dunst keybindings --- .config/i3/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 9978c28..6e26a89 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -175,9 +175,9 @@ bindsym XF86AudioPrev exec --no-startup-id mpc prev bindsym XF86AudioStop exec --no-startup-id mpc stop # dunst control -bindsym $mod+period exec dunstctl close -bindsym $mod+Shift+period exec dunstctl close-all -bindsym $mod+comma exec dunstctl history-pop +bindsym $mod+comma exec dunstctl close +bindsym $mod+Shift+comma exec dunstctl close-all +bindsym $mod+period exec dunstctl history-pop # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From a4e7c0d67f608256dc1aefa6fb8639cce2c02c58 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 3 Jan 2024 10:43:20 +0100 Subject: [PATCH 3/3] fuzzy-i3lock: Use and improve 37c3 fuzzy-i3lock --- .config/i3/config | 2 +- .local/bin/fuzzy-i3lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 6e26a89..a4b23b6 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -291,4 +291,4 @@ workspace $ws11 output $screen0 workspace $ws12 output $screen0 # start autolock -exec_always xautolock -time 5 -locker "fuzzy-i3lock" +exec_always xautolock -time 5 -locker "fuzzy-i3lock 37c3" diff --git a/.local/bin/fuzzy-i3lock b/.local/bin/fuzzy-i3lock index f018b60..7890925 100755 --- a/.local/bin/fuzzy-i3lock +++ b/.local/bin/fuzzy-i3lock @@ -11,7 +11,7 @@ screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" scrot -o "$screenshot" case $1 in - "37c3") mogrify -scale 10% -scale 1000% -blur 0x1 -dither FloydSteinberg -colors 32 "$screenshot" + "37c3") mogrify -scale 10% -scale 500% -dither FloydSteinberg -colors 32 -scale 200% "$screenshot" ;; *) mogrify -scale 10% -scale 1000% "$screenshot" ;;