aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-15 16:29:58 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-15 16:29:58 +0100
commit168a0e173a75a83b567a8a8c47f1448c1744d06f (patch)
treee93fa0c33eb864b7f6d4165edabf19da0e2a2151
parent1ae4cc20cc2931c6b8270a87f7457a38d5bb34a5 (diff)
downloaddotfiles-168a0e173a75a83b567a8a8c47f1448c1744d06f.tar.gz
i3/sway keepass
-rw-r--r--i3/config.d/40-app-settings.conf4
-rw-r--r--i3/config.d/40-app-shortcuts.conf2
-rw-r--r--sway/config.d/00-sway.conf2
-rw-r--r--sway/config.d/40-app-shortcuts.conf4
4 files changed, 10 insertions, 2 deletions
diff --git a/i3/config.d/40-app-settings.conf b/i3/config.d/40-app-settings.conf
index bc63edb..a28c515 100644
--- a/i3/config.d/40-app-settings.conf
+++ b/i3/config.d/40-app-settings.conf
@@ -1,7 +1,9 @@
# vi: ft=i3config
-bindsym $mod+minus [class="KeePassXC"] scratchpad show
+# XORG
for_window [class="KeePassXC" title="^.*KeePassXC$"] move scratchpad
+# SWAY
+for_window [app_id="org.keepassxc.KeePassXC" title="^.*KeePassXC$"] move scratchpad
for_window [class="feh"] floating enable
diff --git a/i3/config.d/40-app-shortcuts.conf b/i3/config.d/40-app-shortcuts.conf
index 7d1a00b..4254e8d 100644
--- a/i3/config.d/40-app-shortcuts.conf
+++ b/i3/config.d/40-app-shortcuts.conf
@@ -1,5 +1,7 @@
# vi: ft=i3config
+bindsym $mod+minus [class="KeePassXC"] scratchpad show
+
bindsym $mod+Return exec "termite -t termite"
bindsym $mod+Shift+Return exec "termite -t termite_floating"
diff --git a/sway/config.d/00-sway.conf b/sway/config.d/00-sway.conf
index c5f3063..c907650 100644
--- a/sway/config.d/00-sway.conf
+++ b/sway/config.d/00-sway.conf
@@ -24,3 +24,5 @@ exec swayidle -w \
timeout 1805 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock'
+
+exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
diff --git a/sway/config.d/40-app-shortcuts.conf b/sway/config.d/40-app-shortcuts.conf
index 9c27915..3d59dcb 100644
--- a/sway/config.d/40-app-shortcuts.conf
+++ b/sway/config.d/40-app-shortcuts.conf
@@ -1,5 +1,7 @@
# vi: ft=i3config
+bindsym $mod+minus [app_id="org.keepassxc.KeePassXC"] scratchpad show
+
bindsym $mod+Return exec $term
bindsym $mod+Shift+Return exec "$term -t termite_floating"
@@ -18,7 +20,7 @@ bindsym $mod+Shift+b exec "firefox --private-window"
#"scrot ~/Screenshots/Screenshot%Y-%m-%d%H:%M:%S.png"
# rofi
-bindsym $mod+d exec j4-dmenu-desktop --dmenu='bemenu -i --nb "#3f3f3f" --nf "#dcdccc" --fn "pango:DejaVu Sans Mono 12"' --term='alacritty'
+bindsym $mod+d exec j4-dmenu-desktop --dmenu='bemenu -i --nb "#3f3f3f" --nf "#dcdccc" --fn "monospace 12"' --term='$term'
# notifications
bindsym $mod+n exec "kill -s USR1 $(pidof deadd-notification-center)"