mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
@@ -3,21 +3,6 @@
|
||||
let
|
||||
homedir = config.home.homeDirectory;
|
||||
|
||||
#wallpaper = pkgs.writeShellScriptBin "wallpaper" ''
|
||||
# WALLPAPER_FOLDER="${homedir}/Nextcloud/wallpaper"
|
||||
#
|
||||
# cd $WALLPAPER_FOLDER
|
||||
#
|
||||
# choosed_wallpaper=$(fd . |
|
||||
# fzf \
|
||||
# --preview='kitty icat --clear --transfer-mode=memory --stdin=no --place=''${FZF_PREVIEW_COLUMNS}x''${FZF_PREVIEW_LINES}@0x0 {}' \
|
||||
# --preview-window=bottom,border-top \
|
||||
# --border-label "Wallpaper" ) || exit 1
|
||||
#
|
||||
# swww img $choosed_wallpaper
|
||||
# cp $choosed_wallpaper $HOME/.config/wallpaper/default.png
|
||||
#'';
|
||||
|
||||
menu = pkgs.writeShellScriptBin "menu" ''
|
||||
if pgrep wofi; then
|
||||
pkill wofi
|
||||
@@ -27,11 +12,15 @@ let
|
||||
'';
|
||||
|
||||
powermenu = pkgs.writeShellScriptBin "powermenu" ''
|
||||
${pkgs.wlogout}/bin/wlogout
|
||||
if pgrep wlogout; then
|
||||
pkill wlogout
|
||||
else
|
||||
${pkgs.wlogout}/bin/wlogout
|
||||
fi
|
||||
'';
|
||||
|
||||
wireguard-import = pkgs.writeShellScriptBin "wireguard-import" ''
|
||||
nmcli connection import type wireguard file "$0"
|
||||
nmcli connection import type wireguard file "$1"
|
||||
'';
|
||||
|
||||
in { home.packages = with pkgs; [ menu wireguard-import powermenu ]; }
|
||||
|
||||
Reference in New Issue
Block a user