Browse Source

use dmenu-style app starting

Bananicorn 2 years ago
parent
commit
97a0aa7420

+ 1 - 1
devuan_setup/config/sway/config

@@ -138,7 +138,7 @@ bindsym $Mod+r mode "resize"
 bindsym $Mod+Shift+c reload
 # restart sway inplace (preserves your layout/session, can be used to upgrade sway)
 bindsym $Mod+Shift+r restart
-bindsym $Mod+Space exec "wofi"
+bindsym $Mod+Space exec "cat ~/desktop/applications.txt | wofi --dmenu | dash"
 # exit sway
 bindsym $Mod+Shift+e exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your sway session.' -b 'Yes, exit sway' 'swaymsg exit'"
 

+ 7 - 0
devuan_setup/desktop/applications.txt

@@ -0,0 +1,7 @@
+firefox-esr
+chromium
+connman-gtk --no-icon
+keepassxc
+thunar
+inkscape
+blender

+ 1 - 0
devuan_setup/scripts/shutdown_handler.sh

@@ -1,4 +1,5 @@
 #!/bin/bash
+#swaymsg -t get_workspaces | jq ".[] | select(.focused == true)"
 if zenity --question --text 'Shutdown?' --ok-label 'Shutdown' --cancel-label 'Cancel'; then
 	exec sudo poweroff
 fi

+ 2 - 1
devuan_setup/setup_system.sh

@@ -56,7 +56,8 @@ ln -sn ~/dotfiles/devuan_setup/config/wob ~/.config/wob
 sudo apt install -y wofi
 ln -sn ~/dotfiles/devuan_setup/config/wofi ~/.config/wofi
 #wofi will search for desktop files in here
-mkdir -p ~/.local/share/applications
+mkdir -p ~/desktop
+ln -sn ~/dotfiles/devuan_setup/desktop/applications.txt ~/desktop/applications.txt
 
 #automount external drives
 sudo apt install -y udiskie