First shell script

This commit is contained in:
Tomas Rivera
2026-02-26 15:08:56 +01:00
parent a92792195a
commit 8c45417cac
4 changed files with 39 additions and 4 deletions
+2 -1
View File
@@ -39,7 +39,7 @@
# Enable the GNOME Desktop Environment.
# services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
# services.desktopManager.gnome.enable = true;
# enable hyprland WM
programs.hyprland = {
enable = true;
@@ -135,6 +135,7 @@ services.upower.enable = true;
networkmanagerapplet # NetworkManager control applet
cliphist # Wayland clipboard manager
wl-clipboard # cli copy/past utilities for Wayland
jp # lightweight and flexible cli JSON parser
];
# fonts
+4
View File
@@ -4,6 +4,7 @@
# every import imports a specific module for an app. This module contains the enabling of this app and its settings.
# So if you want to add an home-manager app create a module which enables it and configures it and import it.
imports = [
# app modules
../../modules/home-manager/kitty.nix # terminal # use absolute path with --impure flag or go back to /etc/nixos and use relative
../../modules/home-manager/zoxide.nix # better cd
../../modules/home-manager/zsh.nix # better bash
@@ -33,6 +34,9 @@ home.stateVersion = "25.11"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = [
#scritps
(pkgs.callPackage ./modules/scripts/dontkillsteam.nix {})
# # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run.
# pkgs.hello
+16 -3
View File
@@ -14,7 +14,7 @@
"$term" = "kitty";
"$editor" = "nvim";
"$file" = "nautilius";
"$browser" = "firefox" # change to librewolf later
"$browser" = "firefox"; # change to librewolf later
# ▄▀█ █▄░█ █ █▀▄▀█ ▄▀█ ▀█▀ █ █▀█ █▄░█
# █▀█ █░▀█ █ █░▀░█ █▀█ ░█░ █ █▄█ █░▀█
@@ -37,7 +37,12 @@
# █ █▄░█ █▀█ █░█ ▀█▀
# █ █░▀█ █▀▀ █▄█ ░█░
# is it needed? Doesnt nixos already handles that?
input = {
kb_layout = [ "ch" ];
follow_mouse = 1;
sensitivity = 0;
force_no_accel = 1;
};
# █▄▀ █▀▀ █▄█ █▄▄ █ █▄░█ █▀▄ █ █▄░█ █▀▀ █▀
# █░█ ██▄ ░█░ █▄█ █ █░▀█ █▄▀ █ █░▀█ █▄█ ▄█
@@ -76,7 +81,7 @@
"$mod+Shift, 9, movetoworkspace, 9"
"$mod+Shift, 0, movetoworkspace, 10"
"$mod+Ctrl+Alt, Right, movetoworkspace, r+1"
"$mod+Ctrl+Alt, Left, movetoworkspacem r-1"
"$mod+Ctrl+Alt, Left, movetoworkspace, r-1"
"$mod, Backspace, exec, wlogout -b 5 -T 600 -B 600"
"$mod+Shift+Ctrl, Left, movewindow, l"
"$mod+Shift+Ctrl, Right, movewindow, r"
@@ -136,6 +141,14 @@
# █▀▄▀█ █ █▀ █▀▀
# █░▀░█ █ ▄█ █▄▄
misc = {
vrr = 0;
force_default_wallpaper = 0;
};
xwayland = {
force_zero_scaling = true;
};
# █▀▄▀█ █▀█ █▄░█ █ ▀█▀ █▀█ █▀█
# █░▀░█ █▄█ █░▀█ █ ░█░ █▄█ █▀▄
monitor = [
+17
View File
@@ -0,0 +1,17 @@
{ writeShellApplication, hyprland, jq, ... }:
writeShellApplication {
name = "custom-dontkillsteam";
runtimeInputs = [
hyprland
jq
];
text = ''
if [[ $(hyprctl activewindow -j | jq -r ".class") == "Steam" ]]; then
hyprctl dispatch minimize
else
hyprctl dispatch killactive ""
fi
'';
}