mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-22 08:20:59 +02:00
Implement fixes by mikroskeem
This commit is contained in:
parent
6a17adc1ec
commit
402ede807f
@ -3,10 +3,12 @@ oIFS=$IFS
|
|||||||
IFS=:
|
IFS=:
|
||||||
data_dirs=($XDG_DATA_DIRS)
|
data_dirs=($XDG_DATA_DIRS)
|
||||||
IFS=$oIFS
|
IFS=$oIFS
|
||||||
data_dirs+=("~/.local/share")
|
data_dirs+=("${HOME}/.local/share")
|
||||||
(
|
|
||||||
for folder in ${data_dirs[*]}; do
|
|
||||||
find ${folder%/}/applications -name \*.desktop;
|
|
||||||
done
|
|
||||||
) | xargs basename -s .desktop -a | fzf | xargs -r swaymsg -t command exec gtk-launch
|
|
||||||
|
|
||||||
|
fzf_history="${HOME}/.desktop_launcher_history"
|
||||||
|
|
||||||
|
for folder in ${data_dirs[*]}; do find "${folder%/}/applications" -name '*.desktop' -print0; done \
|
||||||
|
| xargs -0 basename -z -s .desktop -a \
|
||||||
|
| sort -r -z \
|
||||||
|
| fzf +m --read0 --history="${fzf_history}" \
|
||||||
|
| xargs -r swaymsg -t command exec gtk-launch
|
||||||
|
@ -18,7 +18,7 @@ set $term gnome-terminal
|
|||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: it's recommended that you pass the final command to sway
|
# Note: it's recommended that you pass the final command to sway
|
||||||
#set $menu dmenu_path | dmenu | xargs swaymsg exec
|
#set $menu dmenu_path | dmenu | xargs swaymsg exec
|
||||||
set $menu gnome-terminal --title=launcher -- ~/.bin/desktop_launcher.sh
|
set $menu gnome-terminal --title=swayapplauncher -- ~/.bin/desktop_launcher.sh
|
||||||
|
|
||||||
### Output configuration
|
### Output configuration
|
||||||
#
|
#
|
||||||
@ -213,7 +213,7 @@ bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl --quiet set +5%
|
|||||||
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl --quiet set 5%-
|
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl --quiet set 5%-
|
||||||
|
|
||||||
# launcher float
|
# launcher float
|
||||||
for_window [title=".*launcher.*"] floating enable
|
for_window [title=".*swayapplauncher.*"] floating enable
|
||||||
|
|
||||||
# screenshots
|
# screenshots
|
||||||
bindsym Print exec grim $(xdg-user-dir PICTURES)/$(date +'screenshot_%Y-%m-%d-%H%M%S_grim.png')
|
bindsym Print exec grim $(xdg-user-dir PICTURES)/$(date +'screenshot_%Y-%m-%d-%H%M%S_grim.png')
|
||||||
|
Loading…
Reference in New Issue
Block a user