Compare commits
3 Commits
3855d7e7a0
...
808c759f89
Author | SHA1 | Date | |
---|---|---|---|
808c759f89 | |||
73208c3be0 | |||
f31f722b56 |
@ -4,6 +4,7 @@
|
|||||||
keysetting = pkgs.writeShellScript "keysetting" ''
|
keysetting = pkgs.writeShellScript "keysetting" ''
|
||||||
wpctl=${pkgs.wireplumber}/bin/wpctl
|
wpctl=${pkgs.wireplumber}/bin/wpctl
|
||||||
notify_send=${pkgs.libnotify}/bin/notify-send
|
notify_send=${pkgs.libnotify}/bin/notify-send
|
||||||
|
brightnessctl=${pkgs.brightnessctl}/bin/brightnessctl
|
||||||
|
|
||||||
notify-send () {
|
notify-send () {
|
||||||
$notify_send -h string:x-canonical-private-synchronous:keysetting "$@"
|
$notify_send -h string:x-canonical-private-synchronous:keysetting "$@"
|
||||||
@ -17,10 +18,21 @@
|
|||||||
$wpctl set-volume @DEFAULT_SINK@ "$1"
|
$wpctl set-volume @DEFAULT_SINK@ "$1"
|
||||||
notifyvol
|
notifyvol
|
||||||
}
|
}
|
||||||
|
|
||||||
|
notifybright () {
|
||||||
|
notify-send "Brightness: $(($($brightnessctl g)*100/$($brightnessctl m)))%"
|
||||||
|
}
|
||||||
|
|
||||||
|
setbright () {
|
||||||
|
$brightnessctl s "$1"
|
||||||
|
notifybright
|
||||||
|
}
|
||||||
case "$1" in
|
case "$1" in
|
||||||
volumeup) setvol 5%+ ;;
|
volumeup) setvol 5%+ ;;
|
||||||
volumedown) setvol 5%- ;;
|
volumedown) setvol 5%- ;;
|
||||||
mute) $wpctl set-mute @DEFAULT_SINK@ toggle; notifyvol;;
|
mute) $wpctl set-mute @DEFAULT_SINK@ toggle; notifyvol;;
|
||||||
|
monup) setbright 5%+;;
|
||||||
|
mondown) setbright 5%-;;
|
||||||
esac
|
esac
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
./nvidia-optimus.nix
|
./nvidia-optimus.nix
|
||||||
../../system/remote.nix
|
../../system/remote.nix
|
||||||
../../system/plasma.nix
|
# ../../system/plasma.nix
|
||||||
../../system/fragments/opengl.nix
|
../../system/fragments/opengl.nix
|
||||||
../../system/gaming.nix
|
../../system/gaming.nix
|
||||||
../../system/android.nix
|
../../system/android.nix
|
||||||
|
@ -4,12 +4,21 @@
|
|||||||
./desktop-common.nix
|
./desktop-common.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNvidiaPatches = true;
|
enableNvidiaPatches = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = [
|
||||||
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
kitty
|
kitty
|
||||||
dunst
|
dunst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user