mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
First shell script
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
# Enable the GNOME Desktop Environment.
|
# Enable the GNOME Desktop Environment.
|
||||||
# services.displayManager.gdm.enable = true;
|
# services.displayManager.gdm.enable = true;
|
||||||
services.desktopManager.gnome.enable = true;
|
# services.desktopManager.gnome.enable = true;
|
||||||
# enable hyprland WM
|
# enable hyprland WM
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -135,6 +135,7 @@ services.upower.enable = true;
|
|||||||
networkmanagerapplet # NetworkManager control applet
|
networkmanagerapplet # NetworkManager control applet
|
||||||
cliphist # Wayland clipboard manager
|
cliphist # Wayland clipboard manager
|
||||||
wl-clipboard # cli copy/past utilities for Wayland
|
wl-clipboard # cli copy/past utilities for Wayland
|
||||||
|
jp # lightweight and flexible cli JSON parser
|
||||||
];
|
];
|
||||||
|
|
||||||
# fonts
|
# fonts
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
# every import imports a specific module for an app. This module contains the enabling of this app and its settings.
|
# 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.
|
# So if you want to add an home-manager app create a module which enables it and configures it and import it.
|
||||||
imports = [
|
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/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/zoxide.nix # better cd
|
||||||
../../modules/home-manager/zsh.nix # better bash
|
../../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
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = [
|
home.packages = [
|
||||||
|
#scritps
|
||||||
|
(pkgs.callPackage ./modules/scripts/dontkillsteam.nix {})
|
||||||
|
|
||||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||||
# # "Hello, world!" when run.
|
# # "Hello, world!" when run.
|
||||||
# pkgs.hello
|
# pkgs.hello
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"$term" = "kitty";
|
"$term" = "kitty";
|
||||||
"$editor" = "nvim";
|
"$editor" = "nvim";
|
||||||
"$file" = "nautilius";
|
"$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, 9, movetoworkspace, 9"
|
||||||
"$mod+Shift, 0, movetoworkspace, 10"
|
"$mod+Shift, 0, movetoworkspace, 10"
|
||||||
"$mod+Ctrl+Alt, Right, movetoworkspace, r+1"
|
"$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, Backspace, exec, wlogout -b 5 -T 600 -B 600"
|
||||||
"$mod+Shift+Ctrl, Left, movewindow, l"
|
"$mod+Shift+Ctrl, Left, movewindow, l"
|
||||||
"$mod+Shift+Ctrl, Right, movewindow, r"
|
"$mod+Shift+Ctrl, Right, movewindow, r"
|
||||||
@@ -136,6 +141,14 @@
|
|||||||
# █▀▄▀█ █ █▀ █▀▀
|
# █▀▄▀█ █ █▀ █▀▀
|
||||||
# █░▀░█ █ ▄█ █▄▄
|
# █░▀░█ █ ▄█ █▄▄
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
vrr = 0;
|
||||||
|
force_default_wallpaper = 0;
|
||||||
|
};
|
||||||
|
xwayland = {
|
||||||
|
force_zero_scaling = true;
|
||||||
|
};
|
||||||
|
|
||||||
# █▀▄▀█ █▀█ █▄░█ █ ▀█▀ █▀█ █▀█
|
# █▀▄▀█ █▀█ █▄░█ █ ▀█▀ █▀█ █▀█
|
||||||
# █░▀░█ █▄█ █░▀█ █ ░█░ █▄█ █▀▄
|
# █░▀░█ █▄█ █░▀█ █ ░█░ █▄█ █▀▄
|
||||||
monitor = [
|
monitor = [
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user