This commit is contained in:
Hadi 2024-08-18 23:56:48 +02:00
parent 9d74ac9d82
commit 94c88e04f2
7 changed files with 12 additions and 75 deletions

View File

@ -28,8 +28,8 @@ Wallpapers can be found in the `/home/wallpapers` folder.
| mountains.png | ![mountains.png](../home/wallpapers/mountains.png) | | mountains.png | ![mountains.png](../home/wallpapers/mountains.png) |
| nix.png | ![nix.png](../home/wallpapers/nix.png) | | nix.png | ![nix.png](../home/wallpapers/nix.png) |
| problems.png | ![problems.png](../home/wallpapers/problems.png) | | problems.png | ![problems.png](../home/wallpapers/problems.png) |
| sea2.png | ![sea2.png](../home/wallpapers/sea2.png) |
| sea.png | ![sea.png](../home/wallpapers/sea.png) | | sea.png | ![sea.png](../home/wallpapers/sea.png) |
| see.png | ![see.png](../home/wallpapers/see.png) |
| space2.png | ![space2.png](../home/wallpapers/space2.png) | | space2.png | ![space2.png](../home/wallpapers/space2.png) |
| space.png | ![space.png](../home/wallpapers/space.png) | | space.png | ![space.png](../home/wallpapers/space.png) |
| street.png | ![street.png](../home/wallpapers/street.png) | | street.png | ![street.png](../home/wallpapers/street.png) |

View File

@ -33,6 +33,7 @@ in {
lastfm lastfm
historyShortcut historyShortcut
hidePodcasts hidePodcasts
adblock
fullAppDisplay fullAppDisplay
shuffle shuffle
]; ];

View File

@ -12,6 +12,5 @@
./battery ./battery
./compress ./compress
./misc ./misc
./tofi
]; ];
} }

View File

@ -1,62 +0,0 @@
{ pkgs, config, ... }:
let
tofi = pkgs.writeShellScriptBin "tofi" ''
hyprexec="hyprctl dispatch exec"
function exec() {
$@
}
function ui(){
DEFAULT_ICON="󰘳"
# "icon;name;command"[]
apps=(
";Nixy;nixy"
";Nerdfont FZF;nerdfont-fzf"
";Brightness Up;brightness-up"
";Brightness Down;brightness-down"
";Sound Up;sound-up"
";Sound Down;sound-down"
";Sound Toggle Mute;sound-toggle"
";Sound Change Output;sound-output"
";Caffeine;caffeine"
";Night Shift Toggle;night-shift-toggle"
";Firefox;$hyprexec firefox"
";Qutebrowser;$hyprexec qutebrowser"
";Kitty;$hyprexec kitty"
";Thunar;$hyprexec thunar"
";Powermenu;powermenu"
";Wofi;menu"
";Lock;lock"
";Bitwarden;$hyprexec bitwarden"
";Clock; peaclock"
";Nextcloud;$hyprexec nextcloud"
";Spotify;$hyprexec spotify"
";Btop;btop"
";Cava;cava"
";Discord;$hyprexec discord"
";Vlc;$hyprexec vlc"
";Obsidian;$hyprexec obsidian"
)
# Apply default icons if empty:
for i in "''${!apps[@]}"; do
apps[i]=$(echo "''${apps[i]}" | sed 's/^;/'$DEFAULT_ICON';/')
done
fzf_result=$(printf "%s\n" "''${apps[@]}" | awk -F ';' '{print $1" "$2}' | fzf)
[[ -z $fzf_result ]] && exit 0
fzf_result=''${fzf_result/ /;}
line=$(printf "%s\n" "''${apps[@]}" | grep "$fzf_result")
command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//')
exec "$command"
exit 0
}
ui
'';
in { home.packages = [ tofi ]; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 MiB

View File

@ -27,6 +27,7 @@
# change the nvim's obsidian configuration if you want to enable that: # change the nvim's obsidian configuration if you want to enable that:
obsidian = true; obsidian = true;
tailscale = true; tailscale = true;
usbguard = false;
theme = import ../themes/nixy.nix; # select your theme here theme = import ../themes/nixy.nix; # select your theme here
}; };

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, config, ... }:
{ {
# USB Automounting # USB Automounting
@ -7,16 +7,14 @@
# services.devmon.enable = true; # services.devmon.enable = true;
# Enable USB Guard # Enable USB Guard
# services.usbguard = { services.usbguard = {
# enable = true; enable = config.var.usbguard;
# dbus.enable = true; dbus.enable = true;
# implicitPolicyTarget = "block"; implicitPolicyTarget = "block";
# # FIXME: set yours pref USB devices (change {id} to your trusted USB device), use `lsusb` command (from usbutils package) to get list of all connected USB devices including integrated devices like camera, bluetooth, wifi, etc. with their IDs or just disable `usbguard` # FIXME: set yours pref USB devices (change {id} to your trusted USB device), use `lsusb` command (from usbutils package) to get list of all connected USB devices including integrated devices like camera, bluetooth, wifi, etc. with their IDs or just disable `usbguard`
# rules = '' # allow id {id} # device 1...
# allow id {id} # device 1 rules = "";
# allow id {id} # device 2 };
# '';
# };
# Enable USB-specific packages # Enable USB-specific packages
environment.systemPackages = with pkgs; [ usbutils ]; environment.systemPackages = with pkgs; [ usbutils ];