Compare commits

...

14 commits

17 changed files with 10130 additions and 76 deletions

View file

@ -8,21 +8,32 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-label/NIX-ROOT";
fsType = "ext4";
boot = {
initrd = {
availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
kernelModules = [ ];
luks.devices."luks-c21cb4a4-f618-43af-bc0c-e8be74fe3b81".device = "/dev/disk/by-uuid/c21cb4a4-f618-43af-bc0c-e8be74fe3b81";
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
boot.initrd.luks.devices."luks-c21cb4a4-f618-43af-bc0c-e8be74fe3b81".device = "/dev/disk/by-uuid/c21cb4a4-f618-43af-bc0c-e8be74fe3b81";
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIX-ROOT";
fsType = "ext4";
};
fileSystems."/boot/efi" = {
device = "/dev/disk/by-label/NIX-BOOT";
fsType = "vfat";
"/boot/efi" = {
device = "/dev/disk/by-label/NIX-BOOT";
fsType = "vfat";
};
};
swapDevices = [

View file

@ -65,14 +65,17 @@ in {
config = lib.mkIf cfg.enable {
environment.systemPackages = (with pkgs; [
# Window manager related
dbus-sway-environment
configure-gtk
wayland
xdg-utils # Open with default program
glib # gsettings
wl-clipboard
wl-mirror # Mirror an output
wdisplays # Tool to configure displays
# Desktop Environment related
brightnessctl
dunst
libnotify

View file

@ -5,6 +5,7 @@
./openssh
./pipewire
./printing
./remEYEnder
./tailscale
];
}

View file

@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.services.remEYEnder;
icon = ./vecteezy_eyes-line-icon-vector-isolated_13932670.jpg;
in {
options.sisyphus.services.remEYEnder.enable = lib.mkEnableOption "Eye reminder";
config = lib.mkIf cfg.enable {
systemd.user = {
services.remEYEnder = {
enable = true;
description = "Send an eye reminder";
serviceConfig.Type = "oneshot";
script = ''
# Display reminder for 20 seconds.
${pkgs.libnotify}/bin/notify-send -t 20000 --icon=${icon} "RemEYEnder" "Look away from your screen :)"
'';
};
timers.remEYEnder = {
enable = true;
description = "Timer for remEYEnders, runs every 20 minutes.";
wantedBy = [
"timers.target"
];
timerConfig = {
OnActiveSec = "20min";
OnUnitActiveSec = "20min";
Unit = "remEYEnder.service";
};
};
};
};
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

View file

@ -46,6 +46,7 @@ in {
sisyphus = {
programs.spotify-adblock.enable = true;
services.remEYEnder.enable = true;
};
home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable {

View file

@ -47,6 +47,17 @@ in {
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"NixOS Options" = {
urls = [{
template = "https://search.nixos.org/options";
params = [
{ name = "query"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@no" ];
};
"GitHub" = {
urls = [{
template = "https://github.com/search";

View file

@ -1,6 +1,6 @@
input type:keyboard {
xkb_layout "us"
xkb_variant "altgr-intl"
xkb_layout "us","be"
xkb_variant "altgr-intl","iso-alternate"
}
input type:touchpad {

View file

@ -1,7 +1,8 @@
set $notify ~/projects/sisyphus/scripts/notify.sh
# Focus
bindsym {
# Focus
$flag+$up focus up
$flag+$right focus right
$flag+$down focus down
@ -14,10 +15,8 @@ bindsym {
$flag+p focus parent
$flag+space focus mode_toggle
}
# Move windows
bindsym {
# Move windows
$flag+Shift+$up move up
$flag+Shift+$right move right
$flag+Shift+$down move down
@ -32,10 +31,8 @@ bindsym {
$flag+KP_Next move scratchpad
$flag+Prior scratchpad show
$flag+KP_Prior scratchpad show
}
# Layouts
bindsym {
# Layouts
$flag+z layout toggle split
$flag+x layout tabbed
$flag+c split h
@ -224,8 +221,6 @@ bindsym {
# File explorer
$flag+e exec $term -e vifm
# Internet browser
$flag+i exec firefox
}
bindgesture {

View file

@ -5,9 +5,9 @@
set $default "default"
# Resizing
set $resize "Resize"
bindsym $flag+r mode $resize
mode $resize bindsym {
set $mode_resize "Resize"
bindsym $flag+r mode $mode_resize
mode $mode_resize bindsym {
$right resize grow width 10 px or 10 ppt
$up resize grow height 10 px or 10 ppt
$left resize shrink width 10 px or 10 ppt
@ -38,9 +38,9 @@ mode $resize bindsym {
$flag+Left move left
$flag+Down move down
Return mode $default
Escape mode $default
$flag+r mode $default
Escape mode $default
Return mode $default
}
# System actions
@ -53,9 +53,23 @@ mode $mode_system bindsym {
r mode $default, exec systemctl reboot
Shift+s mode $default, exec systemctl poweroff -i
Return mode $default
Escape mode $default
Control+$alt+Delete mode $default
Escape mode $default
Return mode $default
}
set $mode_preferences "Toggle (d)ark mode, (s)unset, (n)otification"
bindsym $alt+end mode $mode_preferences
bindsym $alt+KP_End mode $mode_preferences
mode $mode_preferences bindsym {
d exec "${SCRIPT_DIR}/toggle-light-dark.sh", mode $default
s exec "${SCRIPT_DIR}/sunset.sh", mode $default
n exec "${SCRIPT_DIR}/do-not-disturb.sh", mode $default
$alt+end mode $default
$alt+KP_End mode $default
Escape mode $default
Return mode $default
}
# Screenshots
@ -72,20 +86,23 @@ mode $mode_screenshot bindsym {
Shift+s exec grimshot --notify save screen $save_format, mode $default
Print exec grimshot --notify save screen $save_format, mode $default
Return mode $default
Escape mode $default
Return mode $default
}
set $mode_preferences "Toggle (d)ark mode, (s)unset, (n)otification"
bindsym $alt+end mode $mode_preferences
bindsym $alt+KP_End mode $mode_preferences
mode $mode_preferences bindsym {
d exec "${SCRIPT_DIR}/toggle-light-dark.sh", mode $default
s exec "${SCRIPT_DIR}/sunset.sh", mode $default
n exec "${SCRIPT_DIR}/do-not-disturb.sh", mode $default
# Launcher
set $mode_launcher "Launch (f)irefox, (s)potify or (t)hunderbird."
bindsym $flag+o mode $mode_launcher
mode $mode_launcher bindsym {
f exec firefox
t exec thunderbird
Return mode $default
Escape mode $default
$alt+end mode $default
$alt+KP_End mode $default
$flag+o mode $default
Escape mode $default
Return mode $default
}
# Ignore (all) keybinds. Useful when working with Virtual Machines.
set $mode_ignore "Ignore keybinds - Press Control+Alt+Insert to escape."
bindsym Control+$alt+Insert mode $mode_ignore
mode $mode_ignore bindsym Control+$alt+Insert mode $default

View file

@ -8,8 +8,10 @@ indicator-radius=200
clock
datestr=%A, %B %d %Y
show-failed-attempts
screenshots
effect-blur=5x5
effect-pixelate=10
effect-vignette=0.75:0 # Darken the whole screen.
fade-in=0.25
@ -18,25 +20,35 @@ grace-no-mouse
# Styling
color=000000 # The default background color when no image could be loaded
font=letter extended
text-color=ffffff
text-clear-color=ffffff
text-wrong-color=eb4d4b
text-caps-lock-color=ffffff
text-wrong-color=bd2024
layout-text-color=ffffff
# Make all the other stuff invisible
key-hl-color=00000000
separator-color=00000000
ring-color=00000000
ring-clear-color=00000000
ring-ver-color=00000000
ring-wrong-color=00000000
line-color=00000000
line-clear-color=00000000
line-ver-color=00000000
line-wrong-color=00000000
inside-color=00000000
inside-clear-color=00000000
inside-caps-lock-color=00000000
inside-ver-color=00000000
inside-wrong-color=00000000
key-hl-color=00000000
layout-bg-color=00000000
layout-border-color=00000000
line-color=00000000
line-clear-color=00000000
line-caps-lock-color=00000000
line-ver-color=00000000
line-wrong-color=00000000
ring-color=00000000
ring-clear-color=00000000
ring-caps-lock-color=00000000
ring-ver-color=00000000
ring-wrong-color=00000000
separator-color=00000000
text-ver-color=00000000

View file

@ -30,9 +30,9 @@
"name": "keep",
"position": "top",
"height": 25,
"modules-left": ["sway/mode", "keyboard-state"],
"modules-left": ["sway/mode"],
"modules-center": ["clock"],
"modules-right": ["privacy"],
"modules-right": ["privacy", "keyboard-state"],
"include": [
// Import modules (!)

View file

@ -3,15 +3,14 @@
"sway/workspaces",
"custom/scratchpad-indicator",
"mpris",
"group/system",
"group/system"
],
"modules-right": [
"group/hardware",
"custom/sep",
"bluetooth",
"network",
"pulseaudio",
"battery",
"group/battery",
"custom/sep",
"tray"
]

View file

@ -48,18 +48,31 @@
},
"custom/light-dark-toggle": {
"exec": "bash ${SCRIPT_DIR}/toggle-light-dark.sh -g",
"exec-on-event": true,
"on-click": "bash ${SCRIPT_DIR}/toggle-light-dark.sh",
"tooltip-format": "Toggle between light and dark mode",
"format": "\uf042 ",
// "format": "\uf042 ",
"format": "{icon}",
"format-icons": [
"\uf185",
"\uf111"
],
"tooltip": true,
"tooltip-format": "Toggle between light and dark mode"
},
"custom/keyboard-switch": {
"format": "\uf11c",
"on-click": "swaymsg input type:keyboard xkb_switch_layout next",
"tooltip-format": "Toggle keyboard layouts",
"tooltip": true
},
"custom/night-light-toggle": {
"on-click": "bash ${SCRIPT_DIR}/sunset.sh",
"tooltip-format": "Toggle night-light on or off",
"format": "\uf0eb ",
"tooltip": true,
"tooltip-format": "Toggle night-light on or off",
"tooltip-format": "Toggle night-light on or off"
},
"custom/scratchpad-indicator": {
@ -119,24 +132,39 @@
"tooltip": true
},
"group/hardware": {
"group/battery": {
"orientation": "inherit",
"modules": [
"power-profiles-daemon",
"memory",
"cpu",
"temperature",
"battery",
"custom/system-shutdown",
"custom/system-reboot",
"custom/system-hibernate",
"custom/system-sleep",
"custom/system-lock",
"custom/sep",
"power-profiles-daemon",
"custom/sep"
],
"drawer": {
"transition-duration": 500,
"transition-left-to-right": false,
"children-class": "drawer-child",
},
"children-class": "drawer-child"
}
},
"group/hardware": {
"orientation": "inherit",
"modules": [
"custom/sep",
"memory",
"cpu",
"temperature"
],
"drawer": {
"transition-duration": 500,
"transition-left-to-right": false,
"children-class": "drawer-child"
}
},
"group/system": {
@ -145,13 +173,14 @@
"idle_inhibitor",
"custom/light-dark-toggle",
"custom/night-light-toggle",
"custom/toggle-notifications",
"custom/keyboard-switch",
"custom/toggle-notifications"
],
"drawer": {
"transition-duration": 500,
"tansition-left-to-right": true,
"children-class": "drawer-child",
},
"children-class": "drawer-child"
}
},
"idle_inhibitor": {
@ -165,7 +194,7 @@
"keyboard-state": {
"format": {
"capslock": "{icon}",
"capslock": "{icon}"
},
"format-icons": {
"locked": "\uf023",
@ -173,7 +202,7 @@
},
"numlock": false,
"capslock": true,
"scrollock": false,
"scrollock": false
},
"memory": {
@ -277,7 +306,7 @@
},
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "pavucontrol",
"scroll-step": 2
"scroll-step": -2
},
"temperature": {

View file

@ -54,8 +54,12 @@ alias free='free -m'
alias gs='git status'
alias hgrep='history | grep'
alias ll='ls -la'
alias mkdir='mkdir -pv'
alias more='less'
alias mv='mv -i'
alias np='nano -w PKGBUILD'
alias rm='rm -I --preserve-root'
alias zip='zip -r'
alias update='pushd ~/projects/sisyphus/nixos
nix flake update
sudo nixos-rebuild switch --flake .# --show-trace