Compare commits
2 commits
1e330f25f4
...
28c094ce2c
Author | SHA1 | Date | |
---|---|---|---|
Oliver Traber | 28c094ce2c | ||
Oliver Traber | 1da0ea7f1e |
11
roles/desktop-environment/files/.config/dunst/dunst.ini
Normal file
11
roles/desktop-environment/files/.config/dunst/dunst.ini
Normal file
|
@ -0,0 +1,11 @@
|
|||
[global]
|
||||
follow = mouse
|
||||
font = "JetBrainsMono Nerd Font"
|
||||
background = "#1A1B26"
|
||||
foreground = "#F3F4F5"
|
||||
frame_color = "#FF8F40"
|
||||
separator_color = frame
|
||||
min_icon_size = 75
|
||||
max_icon_size = 75
|
||||
icon_corner_radius = 8
|
||||
text_icon_padding = 10
|
|
@ -24,4 +24,9 @@
|
|||
- fonts-firacode
|
||||
- fonts-font-awesome
|
||||
- fonts-noto-color-emoji
|
||||
- thunar
|
||||
- thunar
|
||||
- dunst
|
||||
- polkit-kde-agent-1
|
||||
- slurp
|
||||
- grim
|
||||
- swappy
|
|
@ -105,10 +105,15 @@ workspace = {{ workspace['id'] }}{% if 'monitor' in workspace %}, monitor:desc:{
|
|||
|
||||
{% endfor %}
|
||||
|
||||
# Execute apps at launch
|
||||
# Execute helper programs
|
||||
exec-once = systemctl --user import-environment DISPLAY WAYLAND_DISPLAY && hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
exec-once = waybar & ~/.local/bin/hyprhelpr background & ~/.local/bin/hyprhelpr idle
|
||||
exec-once = systemctl --user start plasma-polkit-agent.service
|
||||
exec-once = dunst -config ~/.config/dunst/dunst.ini
|
||||
exec-once = waybar
|
||||
exec-once = ~/.local/bin/hyprhelpr background & ~/.local/bin/hyprhelpr idle
|
||||
exec-once = flatpak run com.tomjwatson.Emote
|
||||
|
||||
# Execute apps at launch
|
||||
{% if 'nextcloud' in role_names %}
|
||||
exec-once = nextcloud --background
|
||||
{% endif %}
|
||||
|
@ -128,6 +133,7 @@ bind = $mainMod, F, fullscreen, 0
|
|||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, L, exec, ~/.local/bin/hyprhelpr lock
|
||||
bind = $mainMod, P, exec, ~/.local/bin/hyprhelpr powermenu
|
||||
bind = $mainMod SHIFT, S, exec, ~/.local/bin/hyprhelpr screenshot
|
||||
bind = $mainMod, period, exec, flatpak run com.tomjwatson.Emote
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
|
|
|
@ -59,6 +59,23 @@ powermenu() {
|
|||
fi
|
||||
}
|
||||
|
||||
screenshot() {
|
||||
ACTION=$(printf "Area\nWindow\nScreen" | wofi --show=dmenu -i --width 200 --height 150)
|
||||
if [ -n "$ACTION" ]; then
|
||||
case $ACTION in
|
||||
Area)
|
||||
grim -g "$(slurp)" - | swappy -f -
|
||||
;;
|
||||
Window)
|
||||
grim -g "$(hyprctl clients -j | jq -r ".[] | select(.workspace.id | IN(["$(hyprctl monitors -j | jq '.[].activeWorkspace.id' | xargs | sed -e 's/ /,/g')"][]))" | jq -r ".at,.size" | jq -s "add" | jq '_nwise(4)' | jq -r '"\(.[0]),\(.[1]) \(.[2])x\(.[3])"' | slurp)" - | swappy -f -
|
||||
;;
|
||||
Screen)
|
||||
grim -g "$(slurp -o)" - | swappy -f -
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
ACTION=$1
|
||||
case $ACTION in
|
||||
background)
|
||||
|
@ -79,6 +96,9 @@ case $ACTION in
|
|||
powermenu)
|
||||
powermenu
|
||||
;;
|
||||
screenshot)
|
||||
screenshot
|
||||
;;
|
||||
help | -h | --help)
|
||||
echo "Usage: hyprhelpr <action> [parameters]"
|
||||
echo "Available actions:"
|
||||
|
@ -88,6 +108,7 @@ case $ACTION in
|
|||
echo " shutdown Shut down the system."
|
||||
echo " reboot Reboot the system."
|
||||
echo " powermenu Show wofi in dmenu mode with different power options"
|
||||
echo " screenshot Show wofi in dmenu mode with different screenshot options"
|
||||
echo " help Show this help text."
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue