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) - Tagbar (actually not working)
- Markdown - Markdown
- [ ] <https://github.com/0fie/Mika> - [ ] <https://github.com/0fie/Mika>
- [ ] Scrips:
- [ ] Toggle hyprpanel
- [ ] Update docs - [ ] Update docs
## Server ## Server

View File

@ -4,6 +4,7 @@
./sounds ./sounds
./brightness ./brightness
./caffeine ./caffeine
./hyprpanel
./night-shift ./night-shift
./screenshot ./screenshot
./nerdfont_fzf ./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; [ home.packages = with pkgs; [
qt5.qtwayland qt5.qtwayland
qt6.qtwayland qt6.qtwayland
qt5ct
qt6ct
hyprshot hyprshot
hyprpicker hyprpicker
swappy swappy
@ -20,7 +23,6 @@
wl-clipboard wl-clipboard
brightnessctl brightnessctl
gnome-themes-extra gnome-themes-extra
qt5ct
libva libva
dconf dconf
wayland-utils wayland-utils

View File

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

View File

@ -44,4 +44,9 @@
wget wget
curl 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 ];
};
}