This commit is contained in:
Hadi
2024-03-20 18:01:15 +01:00
parent aa25061ad7
commit 0fee3682d0
16 changed files with 245 additions and 55 deletions

26
home/scripts/misc.nix Normal file
View File

@@ -0,0 +1,26 @@
{ pkgs, config, ... }:
let
homedir = config.home.homeDirectory;
menu = pkgs.writeShellScriptBin "menu" ''
if pgrep wofi; then
pkill wofi
else
wofi --show drun
fi
'';
powermenu = pkgs.writeShellScriptBin "powermenu" ''
if pgrep wlogout; then
pkill wlogout
else
${pkgs.wlogout}/bin/wlogout
fi
'';
wireguard-import = pkgs.writeShellScriptBin "wireguard-import" ''
nmcli connection import type wireguard file "$1"
'';
in { home.packages = with pkgs; [ menu wireguard-import powermenu ]; }