From 5c4a2489186232248995909ba35105053efa3d60 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 7 Aug 2024 09:42:07 -0300 Subject: Added dnd mode and general i3 fixes --- .config/i3/config | 24 ++++++++++-------------- .config/i3/i3lock_script.sh | 11 ----------- .config/i3/i3status_script.delete.later.sh | 19 +++++++++++++++++++ .config/i3/i3status_script.sh | 19 ------------------- .config/i3/scripts/i3lock_script.sh | 11 +++++++++++ .config/i3/scripts/toggle_dnd.sh | 10 ++++++++++ 6 files changed, 50 insertions(+), 44 deletions(-) delete mode 100755 .config/i3/i3lock_script.sh create mode 100755 .config/i3/i3status_script.delete.later.sh delete mode 100755 .config/i3/i3status_script.sh create mode 100755 .config/i3/scripts/i3lock_script.sh create mode 100755 .config/i3/scripts/toggle_dnd.sh diff --git a/.config/i3/config b/.config/i3/config index f8ff71bb..cb142cce 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -29,7 +29,7 @@ font pango:DejaVu Sans Mono 8 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock ~/.config/i3/i3lock_script.sh +exec --no-startup-id xss-lock --transfer-sleep-lock ~/.config/i3/scripts/i3lock_script.sh # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. @@ -192,7 +192,7 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # lock the screen -set $Locker exec "~/.config/i3/i3lock_script.sh" +set $Locker exec "~/.config/i3/scripts/i3lock_script.sh" set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown mode "$mode_system" { @@ -229,12 +229,15 @@ bindsym --release Shift+F12 exec scrot -s -f ~/Pictures/%Y-%m-%d-%H%M%S.png bindsym --release Ctrl+Shift+F12 exec scrot -s -f -o "/tmp/image.png" && xclip -selection clipboard -t image/png -i /tmp/image.png bindsym --release Ctrl+Shift+F11 exec ksnip -r -p "/tmp/image.png" +# Do not disturb +bindsym $mod+m exec "~/.config/i3/scripts/toggle_dnd.sh" + # Shortcuts bindsym $aux+g exec loffice ~/Documents/Gastos/Gastos\ USD.ods bindsym $aux+u exec loffice ~/Documents/Gastos/Gastos\ UYU.ods bindsym $aux+b exec loffice ~/Documents/Gastos/BTC.ods -bindsym $aux+l exec lollypop +bindsym $aux+l exec feishin # Disable focus follows focus_follows_mouse no @@ -257,10 +260,9 @@ assign [class="Element"] $ws4 assign [class="Evolution"] $ws5 assign [class="thunderbird"] $ws5 assign [class="Mailspring"] $ws5 -assign [class="Liferea"] $ws9 -assign [class="NewsFlash"] $ws9 for_window [class = "Spotify"] move to workspace $ws6 assign [class="Lollypop"] $ws6 +assign [class="feishin"] $ws6 assign [class="Clementine"] $ws6 assign [class="Sublime-music"] $ws6 assign [class="Thunar"] $ws7 @@ -269,6 +271,8 @@ assign [class="KeePassXC"] $ws8 assign [class="Bitwarden"] $ws8 assign [class="Joplin"] $ws9 assign [class="kdeconnect.app"] $ws9 +assign [class="Liferea"] $ws9 +assign [class="NewsFlash"] $ws9 # Open specific applications in floating mode for_window [title="File Transfer*"] floating enable @@ -281,12 +285,7 @@ for_window [urgent=latest] focus # Autostarts exec --no-startup-id sleep 20; exec /usr/bin/thunderbird -# exec --no-startup-id exec /usr/bin/mailspring -exec --no-startup-id exec /usr/bin/nextcloud --background -# exec --no-startup-id exec /usr/bin/evolution -# exec_always --no-startup-id .config/conky/start.sh exec --no-startup-id exec emacsclient -c -a emacs -# exec --no-startup-id exec /usr/bin/librewolf exec --no-startup-id sleep 5; exec /usr/bin/firefox exec --no-startup-id sleep 5; exec $terminal exec --no-startup-id sleep 10; exec nitrogen --restore @@ -295,13 +294,10 @@ exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec --no-startup-id /usr/bin/unclutter exec --no-startup-id xfce4-power-manager exec --no-startup-id pamac-tray -exec --no-startup-id exec /opt/Mullvad\ VPN/mullvad-gui --no-sandbox exec_always --no-startup-id sleep 5; exec picom exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd exec_always --no-startup-id autotiling exec --no-startup-id xinput set-prop 14 345 1 -exec --no-startup-id exec /usr/bin/bitwarden-desktop -# exec --no-startup-id exec /usr/bin/keepassxc exec --no-startup-id exec /usr/bin/play-with-mpv exec --no-startup-id exec "~/.config/i3/connect-speakers.sh" exec --no-startup-id sleep 5; exec /usr/bin/kdeconnect-app @@ -309,7 +305,7 @@ exec dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPL # Random scripts ## Generate a random password and copy it to the clipboard -bindsym $aux+p exec --no-startup-id "tr -dc 'A-Za-z0-9!#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' ?@[\]^_`{|}~'