mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 19:28:26 +02:00
245 lines
7.0 KiB
Nix
245 lines
7.0 KiB
Nix
{
|
|
pkgs,
|
|
scripts,
|
|
...
|
|
}: {
|
|
xdg.desktopEntries = {
|
|
mic-mute = {
|
|
name = "Mute Microphone";
|
|
exec = "${scripts.mic-mute}/bin/mic-mute";
|
|
icon = "microphone-sensitivity-muted-symbolic";
|
|
comment = "Toggle microphone mute";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
reboot = {
|
|
name = "Reboot";
|
|
exec = "systemctl reboot";
|
|
icon = "system-restart-symbolic";
|
|
comment = "Restart the system";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
suspend = {
|
|
name = "Suspend";
|
|
exec = "systemctl suspend";
|
|
icon = "system-suspend-symbolic";
|
|
comment = "Suspend the system";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
shutdown = {
|
|
name = "Shutdown";
|
|
exec = "systemctl poweroff";
|
|
icon = "system-shutdown-symbolic";
|
|
comment = "Power off the system";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
hibernate = {
|
|
name = "Hibernate";
|
|
exec = "systemctl hibernate";
|
|
icon = "drive-harddisk-symbolic";
|
|
comment = "Hibernate the system";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
wifi-toggle = {
|
|
name = "Toggle Wi-Fi";
|
|
exec = "${scripts.wifi-toggle}/bin/wifi-toggle";
|
|
icon = "network-wireless-symbolic";
|
|
comment = "Enable or disable Wi-Fi";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
bluetooth-toggle = {
|
|
name = "Toggle Bluetooth";
|
|
exec = "${scripts.bluetooth-toggle}/bin/bluetooth-toggle";
|
|
icon = "bluetooth-symbolic";
|
|
comment = "Enable or disable Bluetooth";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
color-pick = {
|
|
name = "Pick Color";
|
|
exec = "${scripts.color-pick}/bin/color-pick";
|
|
icon = "color-select-symbolic";
|
|
comment = "Pick a screen color to the clipboard";
|
|
categories = ["Utility"];
|
|
terminal = false;
|
|
settings.Keywords = "color;picker;hex;eyedropper;";
|
|
};
|
|
|
|
screenshot-region = {
|
|
name = "Screenshot Region";
|
|
exec = "${pkgs.hyprshot}/bin/hyprshot -m region";
|
|
icon = "screenshot-recorded-symbolic";
|
|
comment = "Capture a selected region";
|
|
categories = ["Utility"];
|
|
terminal = false;
|
|
settings.Keywords = "screenshot;capture;region;";
|
|
};
|
|
|
|
screenshot-window = {
|
|
name = "Screenshot Window";
|
|
exec = "${pkgs.hyprshot}/bin/hyprshot -m window";
|
|
icon = "screenshot-recorded-symbolic";
|
|
comment = "Capture the active window";
|
|
categories = ["Utility"];
|
|
terminal = false;
|
|
settings.Keywords = "screenshot;capture;window;";
|
|
};
|
|
|
|
screenshot-screen = {
|
|
name = "Screenshot Screen";
|
|
exec = "${pkgs.hyprshot}/bin/hyprshot -m output";
|
|
icon = "screenshot-recorded-symbolic";
|
|
comment = "Capture the whole screen";
|
|
categories = ["Utility"];
|
|
terminal = false;
|
|
settings.Keywords = "screenshot;capture;screen;monitor;";
|
|
};
|
|
|
|
screenshot-edit = {
|
|
name = "Screenshot & Annotate";
|
|
exec = "${scripts.screenshot-edit}/bin/screenshot-edit";
|
|
icon = "edit-symbolic";
|
|
comment = "Capture a region and open it in Satty";
|
|
categories = ["Utility"];
|
|
terminal = false;
|
|
settings.Keywords = "screenshot;annotate;satty;edit;";
|
|
};
|
|
|
|
record-toggle = {
|
|
name = "Screen Recording";
|
|
exec = "${scripts.record-toggle}/bin/record-toggle";
|
|
icon = "media-record-symbolic";
|
|
comment = "Start or stop screen recording";
|
|
categories = ["Utility" "AudioVideo"];
|
|
terminal = false;
|
|
settings.Keywords = "record;recording;screencast;video;";
|
|
};
|
|
|
|
airplane-toggle = {
|
|
name = "Airplane Mode";
|
|
exec = "${scripts.airplane-toggle}/bin/airplane-toggle";
|
|
icon = "airplane-mode-symbolic";
|
|
comment = "Toggle Wi-Fi and Bluetooth together";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
settings.Keywords = "airplane;flight;wifi;bluetooth;offline;";
|
|
};
|
|
|
|
emoji-picker = {
|
|
name = "Emoji Picker";
|
|
exec = "${scripts.emoji-picker}/bin/emoji-picker";
|
|
icon = "face-smile-symbolic";
|
|
comment = "Pick an emoji and type it";
|
|
categories = ["Utility"];
|
|
terminal = false;
|
|
settings.Keywords = "emoji;emoticon;smiley;symbol;";
|
|
};
|
|
|
|
icon-picker = {
|
|
name = "Icon Picker";
|
|
exec = "${scripts.icon-picker}/bin/icon-picker";
|
|
icon = "character-map-symbolic";
|
|
comment = "Pick a Nerd Font icon and type it";
|
|
categories = ["Utility"];
|
|
terminal = false;
|
|
settings.Keywords = "icon;nerdfont;glyph;symbol;";
|
|
};
|
|
|
|
logout = {
|
|
name = "Logout";
|
|
exec = "${pkgs.hyprland}/bin/hyprctl dispatch exit";
|
|
icon = "system-log-out-symbolic";
|
|
comment = "End the current session";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
vol-mute = {
|
|
name = "Mute Volume";
|
|
exec = "${scripts.vol-mute}/bin/vol-mute";
|
|
icon = "audio-volume-muted-symbolic";
|
|
comment = "Toggle output mute";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
vol-up = {
|
|
name = "Volume Up";
|
|
exec = "${scripts.vol-up}/bin/vol-up";
|
|
icon = "audio-volume-high-symbolic";
|
|
comment = "Raise the volume by 5%";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
vol-down = {
|
|
name = "Volume Down";
|
|
exec = "${scripts.vol-down}/bin/vol-down";
|
|
icon = "audio-volume-low-symbolic";
|
|
comment = "Lower the volume by 5%";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
bright-up = {
|
|
name = "Brightness Up";
|
|
exec = "${scripts.bright-up}/bin/bright-up";
|
|
icon = "display-brightness-high-symbolic";
|
|
comment = "Raise the brightness by 5%";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
bright-down = {
|
|
name = "Brightness Down";
|
|
exec = "${scripts.bright-down}/bin/bright-down";
|
|
icon = "display-brightness-low-symbolic";
|
|
comment = "Lower the brightness by 5%";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
};
|
|
|
|
output-cycle = {
|
|
name = "Cycle Audio Output";
|
|
exec = "${scripts.output-cycle}/bin/output-cycle";
|
|
icon = "audio-speakers-symbolic";
|
|
comment = "Switch to the next audio output";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
settings.Keywords = "audio;output;sink;speaker;headphones;";
|
|
};
|
|
|
|
input-cycle = {
|
|
name = "Cycle Audio Input";
|
|
exec = "${scripts.input-cycle}/bin/input-cycle";
|
|
icon = "audio-input-microphone-symbolic";
|
|
comment = "Switch to the next audio input";
|
|
categories = ["System"];
|
|
terminal = false;
|
|
settings.Keywords = "audio;input;source;microphone;mic;";
|
|
};
|
|
|
|
settuings = {
|
|
name = "Settings";
|
|
exec = "${pkgs.ghostty}/bin/ghostty +new-window -e ${pkgs.nur.repos.anotherhadi.settuings}/bin/settuings";
|
|
icon = "preferences-system-symbolic";
|
|
comment = "Terminal based settings (wifi, bluetooth, audio, ...)";
|
|
categories = ["Settings"];
|
|
terminal = false;
|
|
settings.Keywords = "settings;wifi;bluetooth;audio;settuings;";
|
|
};
|
|
};
|
|
}
|