This commit is contained in:
Hadi 2024-10-01 14:57:15 +02:00
parent 804e6b255e
commit 7f1c7446f8
7 changed files with 35 additions and 1 deletions

View File

@ -12,6 +12,8 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
- Tagbar (actually not working)
- Markdown
- [ ] <https://github.com/0fie/Mika>
- [ ] Scrips:
- [ ] Toggle hyprpanel
- [ ] Update docs
## Server

View File

@ -4,6 +4,7 @@
./sounds
./brightness
./caffeine
./hyprpanel
./night-shift
./screenshot
./nerdfont_fzf

View File

@ -0,0 +1,13 @@
{ pkgs, ... }:
let
hyprpanel-toggle = pkgs.writeShellScriptBin "hyprpanel-toggle" ''
hyprpanel -t bar-0
hyprpanel -t bar-1
hyprpanel -t bar-2
hyprpanel -t bar-3
'';
hyprpanel-reload = pkgs.writeShellScriptBin "hyprpanel-reload" ''
[ $(pgrep "ags") ] && pkill ags
hyprctl dispatch exec hyprpanel
'';
in { home.packages = [ hyprpanel-toggle hyprpanel-reload ]; }

View File

@ -11,6 +11,9 @@
home.packages = with pkgs; [
qt5.qtwayland
qt6.qtwayland
qt5ct
qt6ct
hyprshot
hyprpicker
swappy
@ -20,7 +23,6 @@
wl-clipboard
brightnessctl
gnome-themes-extra
qt5ct
libva
dconf
wayland-utils

View File

@ -3,6 +3,7 @@
../modules/fonts.nix
../modules/nvidia.nix
../modules/prime.nix
../modules/xorg.nix
../modules/zsh.nix
../modules/tuigreet.nix
../modules/auto-upgrade.nix

View File

@ -44,4 +44,9 @@
wget
curl
];
services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
}

10
hosts/modules/xorg.nix Normal file
View File

@ -0,0 +1,10 @@
{ pkgs, ... }: {
xdg.portal = {
enable = true;
config.common.default = "*";
wlr.enable = true;
xdgOpenUsePortal = true;
extraPortals =
[ pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-gtk ];
};
}