refactor(hyprland): move scripts to the hyprland configuration
This commit is contained in:
parent
f75542ade9
commit
cc8717c4ae
7 changed files with 115 additions and 92 deletions
6
modules/home-manager/programs/hyprland/scripts/screenshot.sh
Executable file
6
modules/home-manager/programs/hyprland/scripts/screenshot.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
FILE_PATH="/mnt/internal/personal/screenshots/$(date +'%Y-%m-%d_%H-%M-%S').png"
|
||||
|
||||
grim -t png -o DP-2 $FILE_PATH
|
||||
wl-copy <$FILE_PATH
|
6
modules/home-manager/programs/hyprland/scripts/screenshot_area.sh
Executable file
6
modules/home-manager/programs/hyprland/scripts/screenshot_area.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
FILE_PATH="/mnt/internal/personal/screenshots/$(date +'%Y-%m-%d_%H-%M-%S').png"
|
||||
|
||||
grim -t png -g "$(slurp -w 0 -b '#6E738D77')" $FILE_PATH
|
||||
wl-copy <$FILE_PATH
|
15
modules/home-manager/programs/hyprland/scripts/start_apps.nix
Executable file
15
modules/home-manager/programs/hyprland/scripts/start_apps.nix
Executable file
|
@ -0,0 +1,15 @@
|
|||
pkgs:
|
||||
|
||||
pkgs.writeShellScriptBin "start_apps" ''
|
||||
# Open qbittorrent
|
||||
qbittorrent &
|
||||
|
||||
# Open vesktop
|
||||
vesktop &
|
||||
|
||||
# Open steam
|
||||
steam &
|
||||
|
||||
# Open firefox
|
||||
firefox
|
||||
''
|
|
@ -0,0 +1,59 @@
|
|||
pkgs:
|
||||
|
||||
pkgs.writeShellScriptBin "start_services" ''
|
||||
#
|
||||
# Make sure xdg-desktop-portal-hyprland has access to what it needs
|
||||
#
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
|
||||
|
||||
#
|
||||
# Start waybar.
|
||||
#
|
||||
waybar &
|
||||
|
||||
#
|
||||
# Start xwaylandvideobridge
|
||||
#
|
||||
xwaylandvideobridge &
|
||||
|
||||
|
||||
#
|
||||
# Start wallpaper daemon
|
||||
#
|
||||
~/.local/share/scripts/wallpaper.sh &
|
||||
|
||||
#
|
||||
# Start notification daemon.
|
||||
#
|
||||
mako &
|
||||
|
||||
#
|
||||
# Start polkit agent
|
||||
#
|
||||
${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1 &
|
||||
|
||||
#
|
||||
# Start kwallet service
|
||||
#
|
||||
kwalletd6 &
|
||||
|
||||
#
|
||||
# Start kdeconnect daemon
|
||||
#
|
||||
kdeconnectd &
|
||||
|
||||
#
|
||||
# Start Fcitx5
|
||||
#
|
||||
fcitx5 &
|
||||
|
||||
#
|
||||
# Start the blueman applet for managing bluetooth devices
|
||||
#
|
||||
blueman-applet &
|
||||
|
||||
#
|
||||
# Clipboard manager
|
||||
#
|
||||
${pkgs.wl-clipboard}/bin/wl-paste --watch cliphist store &
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue