Add utility programs to path

This commit is contained in:
SebastianStork 2024-05-21 21:02:32 +02:00
parent 905d55db30
commit 4f1ae0ec76
3 changed files with 19 additions and 15 deletions

View file

@ -20,6 +20,10 @@
pkgs.cliphist
pkgs.wl-clipboard
(pkgs.writeScriptBin "clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
pkgs.playerctl
pkgs.brightnessctl
pkgs.grimblast
];
wayland.windowManager.hyprland = {

View file

@ -1,9 +1,4 @@
{
config,
pkgs,
lib,
...
}:
{ config, lib, ... }:
{
config = lib.mkIf config.myConfig.de.hyprland.enable {
wayland.windowManager.hyprland.extraConfig = ''
@ -78,9 +73,9 @@
# Control media
${
let
play-pause = "${lib.getExe pkgs.playerctl} --ignore-player=brave play-pause";
play-next = "${lib.getExe pkgs.playerctl} --ignore-player=brave next";
play-previous = "${lib.getExe pkgs.playerctl} --ignore-player=brave previous";
play-pause = "playerctl --ignore-player=brave play-pause";
play-next = "playerctl --ignore-player=brave next";
play-previous = "playerctl --ignore-player=brave previous";
mute = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
volume-up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+";
volume-down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
@ -103,12 +98,12 @@
}
# Adjust brightness
bindel = , XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -e set +2%
bindel = , XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -e set 2%-
bindel = , XF86MonBrightnessUp, exec, brightnessctl -e set +2%
bindel = , XF86MonBrightnessDown, exec, brightnessctl -e set 2%-
# Screenshot
bind = , Print, exec, ${lib.getExe pkgs.grimblast} --notify --freeze copysave output
bind = SHIFT, Print, exec, ${lib.getExe pkgs.grimblast} --notify --freeze copysave area
bind = , Print, exec, grimblast --notify --freeze copysave output
bind = SHIFT, Print, exec, grimblast --notify --freeze copysave area
# Escape special workspace
${lib.concatMapStringsSep "\n" (n: "bind = SUPER, ${toString n}, togglespecialworkspace, blank") (