Merge branch 'master' of ssh://ssh.nx2.site:20022/nx2/dotfiles
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
{ pkgs, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
bash
|
||||
];
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
@@ -19,11 +15,5 @@ lib.mkIf (user != "tv")
|
||||
"checkjobs"
|
||||
];
|
||||
enableCompletion = false;
|
||||
# initExtra = ''
|
||||
# if [[ $- == *i* ]] # if interactive
|
||||
# then
|
||||
# eval "$(${pkgs.starship}/bin/starship init bash)"
|
||||
# fi
|
||||
# '';
|
||||
};
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,4 @@
|
||||
{ lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
programs = {
|
||||
direnv = {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ pkgs, lib, rice, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
fish
|
||||
|
||||
@@ -1,270 +0,0 @@
|
||||
{ config, pkgs, rice, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
foot
|
||||
];
|
||||
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
# background = rice.color.background;
|
||||
# foreground = rice.color.foreground;
|
||||
# cursor = rice.color.foreground;
|
||||
# color0 = rice.color.black.base;
|
||||
# color8 = rice.color.black.bright;
|
||||
# color1 = rice.color.red.base;
|
||||
# color9 = rice.color.red.bright;
|
||||
# color2 = rice.color.green.base;
|
||||
# color10 = rice.color.green.bright;
|
||||
# color3 = rice.color.yellow.base;
|
||||
# color11 = rice.color.yellow.bright;
|
||||
# color4 = rice.color.blue.base;
|
||||
# color12 = rice.color.blue.bright;
|
||||
# color5 = rice.color.magenta.base;
|
||||
# color13 = rice.color.magenta.bright;
|
||||
# color6 = rice.color.cyan.base;
|
||||
# color14 = rice.color.cyan.bright;
|
||||
# color7 = rice.color.white.base;
|
||||
# color15 = rice.color.white.bright;
|
||||
# background_opacity = builtins.toString rice.transparency;
|
||||
# window_padding_width = 5;
|
||||
# remember_window_size = false;
|
||||
|
||||
# settings = {
|
||||
# main = {
|
||||
# shell = ''$SHELL (if set, otherwise user's default shell from /etc/passwd)'';
|
||||
# term = ''foot (or xterm-256color if built with -Dterminfo=disabled)'';
|
||||
# login-shell = ''no'';
|
||||
|
||||
# # app-id = ''foot'';
|
||||
# title = ''foot'';
|
||||
# locked-title = ''no'';
|
||||
|
||||
# font = ''${rice.font.code.name}:size=8'';
|
||||
# font-size-adjustment = ''0.5'';
|
||||
# line-height = "<font metrics>";
|
||||
# letter-spacing = ''0'';
|
||||
# horizontal-letter-offset = ''0'';
|
||||
# vertical-letter-offset = ''0'';
|
||||
# underline-offset = "<font metrics>";
|
||||
# underline-thickness = "<font underline thickness>";
|
||||
# # box-drawings-uses-font-glyphs = "no";
|
||||
# # dpi-aware = ''no'';
|
||||
|
||||
# # initial-window-size-pixels = ''700x500'';
|
||||
# # initial-window-size-chars = "<COLSxROWS>";
|
||||
# # initial-window-mode = ''windowed'';
|
||||
# pad = ''5x5'';
|
||||
# resize-by-cells = ''yes'';
|
||||
# resize-keep-grid = ''yes'';
|
||||
# resize-delay-ms = ''100'';
|
||||
|
||||
# # bold-text-in-bright = false;
|
||||
# word-delimiters = '',│`|:"'()[]{}<>'';
|
||||
# selection-target = ''primary'';
|
||||
# workers = "<number of logical CPUs>";
|
||||
# utmp-helper = ''/usr/lib/utempter/utempter'';
|
||||
# # environment = {
|
||||
# # name = ''value'';
|
||||
# # };
|
||||
|
||||
# };
|
||||
# bell = {
|
||||
# urgent = ''no'';
|
||||
# notify = ''no'';
|
||||
# visual = ''no'';
|
||||
# command = '''';
|
||||
# command-focused = ''no'';
|
||||
# };
|
||||
# desktop-notifications = {
|
||||
# command = ''notify-send --wait --app-name ''${app-id} --icon ''${app-id} --category ''${category} --urgency ''${urgency} --expire-time ''${expire-time} --hint STRING:image-path:''${icon} --hint BOOLEAN:suppress-sound:''${muted} --hint STRING:sound-name:''${sound-name} --replace-id ''${replace-id} ''${action-argument} --print-id -- ''${title} ''${body}'';
|
||||
# command-action-argument = ''--action ''${action-name}=''${action-label}'';
|
||||
# close = ''""'';
|
||||
# inhibit-when-focused = ''yes'';
|
||||
|
||||
# };
|
||||
# scrollback = {
|
||||
# lines = ''1000'';
|
||||
# multiplier = ''3.0'';
|
||||
# indicator-position = ''relative'';
|
||||
# indicator-format = ''""'';
|
||||
# };
|
||||
# url = {
|
||||
# launch = ''xdg-open ''${url}'';
|
||||
# label-letters = ''sadfjklewcmpgh'';
|
||||
# osc8-underline = ''url-mode'';
|
||||
# protocols = ''http, https, ftp, ftps, file, gemini, gopher'';
|
||||
# uri-characters = ''abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]'';
|
||||
# };
|
||||
# cursor = {
|
||||
# style = ''block'';
|
||||
# color = "<inverse foreground/background>";
|
||||
# blink = ''no'';
|
||||
# blink-rate = ''500'';
|
||||
# beam-thickness = ''1.5'';
|
||||
# underline-thickness = "<font underline thickness>";
|
||||
# };
|
||||
# mouse = {
|
||||
# hide-when-typing = ''no'';
|
||||
# alternate-scroll-mode = ''yes'';
|
||||
# };
|
||||
# touch = {
|
||||
# long-press-delay = ''400'';
|
||||
# };
|
||||
# colors = {
|
||||
# alpha = ''1.0'';
|
||||
# background = ''242424'';
|
||||
# foreground = ''ffffff'';
|
||||
# flash = ''7f7f00'';
|
||||
# flash-alpha = ''0.5'';
|
||||
|
||||
# # Normal/regular colors (color palette 0-7)
|
||||
# regular0 = ''242424'';
|
||||
# regular1 = ''f62b5a'';
|
||||
# regular2 = ''47b413'';
|
||||
# regular3 = ''e3c401'';
|
||||
# regular4 = ''24acd4'';
|
||||
# regular5 = ''f2affd'';
|
||||
# regular6 = ''13c299'';
|
||||
# regular7 = ''e6e6e6'';
|
||||
|
||||
# # Bright colors (color palette 8-15)
|
||||
# bright0 = ''616161'';
|
||||
# bright1 = ''ff4d51'';
|
||||
# bright2 = ''35d450'';
|
||||
# bright3 = ''e9e836'';
|
||||
# bright4 = ''5dc5f8'';
|
||||
# bright5 = ''feabf2'';
|
||||
# bright6 = ''24dfc4'';
|
||||
# bright7 = ''ffffff'';
|
||||
|
||||
# # dimmed colors (see foot.ini(5) man page)
|
||||
# # dim0 = "<not set>";
|
||||
# # ...
|
||||
# # dim7 = "<not-set>";
|
||||
|
||||
# # The remaining 256-color palette
|
||||
# # 16 = <256-color palette #16>
|
||||
# # ...
|
||||
# # 255 = <256-color palette #255>
|
||||
|
||||
# # Misc colors
|
||||
# selection-foreground = "<inverse foreground/background>";
|
||||
# selection-background = "<inverse foreground/background>";
|
||||
# jump-labels = "<regular0> <regular3>";
|
||||
# scrollback-indicator = "<regular0> <bright4>";
|
||||
# search-box-no-match = "<regular0> <regular1>";
|
||||
# search-box-match = "<regular0> <regular3>";
|
||||
# urls = "<regular3>";
|
||||
# };
|
||||
# csd = {
|
||||
# preferred = ''server'';
|
||||
# size = ''26'';
|
||||
# font = "<primary font>";
|
||||
# color = "<foreground color>";
|
||||
# hide-when-maximized = ''no'';
|
||||
# double-click-to-maximize = ''yes'';
|
||||
# border-width = ''0'';
|
||||
# border-color = "<csd.color>";
|
||||
# button-width = ''26'';
|
||||
# button-color = "<background color>";
|
||||
# button-minimize-color = "<regular4>";
|
||||
# button-maximize-color = "<regular2>";
|
||||
# button-close-color = "<regular1>";
|
||||
# };
|
||||
# key-bindings = {
|
||||
# scrollback-up-page = ''Shift+Page_Up'';
|
||||
# scrollback-up-half-page = ''none'';
|
||||
# scrollback-up-line = ''none'';
|
||||
# scrollback-down-page = ''Shift+Page_Down'';
|
||||
# scrollback-down-half-page = ''none'';
|
||||
# scrollback-down-line = ''none'';
|
||||
# scrollback-home = ''none'';
|
||||
# scrollback-end = ''none'';
|
||||
# clipboard-copy = ''Control+Shift+c XF86Copy'';
|
||||
# clipboard-paste = ''Control+Shift+v XF86Paste'';
|
||||
# primary-paste = ''Shift+Insert'';
|
||||
# search-start = ''Control+Shift+r'';
|
||||
# font-increase = ''Control+plus Control+equal Control+KP_Add'';
|
||||
# font-decrease = ''Control+minus Control+KP_Subtract'';
|
||||
# font-reset = ''Control+0 Control+KP_0'';
|
||||
# spawn-terminal = ''Control+Shift+n'';
|
||||
# minimize = ''none'';
|
||||
# maximize = ''none'';
|
||||
# fullscreen = ''none'';
|
||||
# pipe-visible = ''[sh -c "xurls | fuzzel | xargs -r firefox"] none'';
|
||||
# pipe-scrollback = ''[sh -c "xurls | fuzzel | xargs -r firefox"] none'';
|
||||
# pipe-selected = ''[xargs -r firefox] none'';
|
||||
# pipe-command-output = ''[wl-copy] none'';
|
||||
# show-urls-launch = ''Control+Shift+o'';
|
||||
# show-urls-copy = ''none'';
|
||||
# show-urls-persistent = ''none'';
|
||||
# prompt-prev = ''Control+Shift+z'';
|
||||
# prompt-next = ''Control+Shift+x'';
|
||||
# unicode-input = ''Control+Shift+u'';
|
||||
# noop = ''none'';
|
||||
# };
|
||||
# search-bindings = {
|
||||
# cancel = ''Control+g Control+c Escape'';
|
||||
# commit = ''Return'';
|
||||
# find-prev = ''Control+r'';
|
||||
# find-next = ''Control+s'';
|
||||
# cursor-left = ''Left Control+b'';
|
||||
# cursor-left-word = ''Control+Left Mod1+b'';
|
||||
# cursor-right = ''Right Control+f'';
|
||||
# cursor-right-word = ''Control+Right Mod1+f'';
|
||||
# cursor-home = ''Home Control+a'';
|
||||
# cursor-end = ''End Control+e'';
|
||||
# delete-prev = ''BackSpace'';
|
||||
# delete-prev-word = ''Mod1+BackSpace Control+BackSpace'';
|
||||
# delete-next = ''Delete'';
|
||||
# delete-next-word = ''Mod1+d Control+Delete'';
|
||||
# extend-char = ''Shift+Right'';
|
||||
# extend-to-word-boundary = ''Control+w Control+Shift+Right'';
|
||||
# extend-to-next-whitespace = ''Control+Shift+w'';
|
||||
# extend-line-down = ''Shift+Down'';
|
||||
# extend-backward-char = ''Shift+Left'';
|
||||
# extend-backward-to-word-boundary = ''Control+Shift+Left'';
|
||||
# extend-backward-to-next-whitespace = ''none'';
|
||||
# extend-line-up = ''Shift+Up'';
|
||||
# clipboard-paste = ''Control+v Control+Shift+v Control+y XF86Paste'';
|
||||
# primary-paste = ''Shift+Insert'';
|
||||
# unicode-input = ''none'';
|
||||
# quit = ''none'';
|
||||
# scrollback-up-page = ''Shift+Page_Up'';
|
||||
# scrollback-up-half-page = ''none'';
|
||||
# scrollback-up-line = ''none'';
|
||||
# scrollback-down-page = ''Shift+Page_Down'';
|
||||
# scrollback-down-half-page = ''none'';
|
||||
# scrollback-down-line = ''none'';
|
||||
# scrollback-home = ''none'';
|
||||
# scrollback-end = ''none'';
|
||||
# };
|
||||
# url-bindings = {
|
||||
# cancel = ''Control+g Control+c Control+d Escape'';
|
||||
# toggle-url-visible = ''t'';
|
||||
# };
|
||||
# text-bindings = {
|
||||
# "\x03" = ''Mod4+c'';
|
||||
# };
|
||||
# mouse-bindings = {
|
||||
# scrollback-up-mouse = ''BTN_WHEEL_BACK'';
|
||||
# scrollback-down-mouse = ''BTN_WHEEL_FORWARD'';
|
||||
# font-increase = ''Control+BTN_WHEEL_BACK'';
|
||||
# font-decrease = ''Control+BTN_WHEEL_FORWARD'';
|
||||
# selection-override-modifiers = ''Shift'';
|
||||
# primary-paste = ''BTN_MIDDLE'';
|
||||
# select-begin = ''BTN_LEFT'';
|
||||
# select-begin-block = ''Control+BTN_LEFT'';
|
||||
# select-extend = ''BTN_RIGHT'';
|
||||
# select-extend-character-wise = ''Control+BTN_RIGHT'';
|
||||
# select-word = ''BTN_LEFT-2'';
|
||||
# select-word-whitespace = ''Control+BTN_LEFT-2'';
|
||||
# select-quote = ''BTN_LEFT-3'';
|
||||
# select-row = ''BTN_LEFT-4'';
|
||||
|
||||
# # vim: ft = ''dosini'';
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
{ pkgs, lib, user, rice, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ pkgs, rice, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
@@ -11,9 +10,7 @@ lib.mkIf (user != "tv")
|
||||
# List of directories to check
|
||||
directories=(
|
||||
"$HOME/nix-dots"
|
||||
"$HOME/shared/nx-obsidian-vault"
|
||||
"$HOME/shared/HSMW/Praxis/BCAM/bolt-llmserver"
|
||||
"$HOME/shared/HSMW/Praxis/BCAM/bcam-tools"
|
||||
"$HOME/obsidian-vault"
|
||||
"$HOME/Pictures/wallpapers"
|
||||
)
|
||||
echo ""
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
enableFishIntegration = true;
|
||||
defaultCacheTtlSsh = min2sec 60;
|
||||
defaultCacheTtl = min2sec 30;
|
||||
# pinentryPackage = pkgs.pinentry-gtk2;
|
||||
# pinentryPackage = pkgs.pinentry-curses;
|
||||
};
|
||||
|
||||
home.file.".gnupg/gpg.conf".text = ''
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ config, pkgs, lib, rice, user, ... }:
|
||||
let
|
||||
{ config, pkgs, lib, rice, user, ... }: let
|
||||
# theme-name = "Colloid-Pink-Dark-Compact";
|
||||
# theme-package = pkgs.colloid-gtk-theme.override {
|
||||
# themeVariants = [ "pink" ];
|
||||
@@ -14,9 +13,7 @@ let
|
||||
tweaks = [ "rimless" "black" ];
|
||||
variant = "macchiato";
|
||||
};
|
||||
in
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
# gnome.gnome-themes-extra
|
||||
# gnome.adwaita-icon-theme
|
||||
|
||||
@@ -1,109 +1,107 @@
|
||||
{ pkgs, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.hyprland-autoname-workspaces
|
||||
];
|
||||
|
||||
home.file.".config/hyprland-autoname-workspaces/config.toml".text = ''
|
||||
version = "1.1.14"
|
||||
home = {
|
||||
packages = with pkgs; [ hyprland-autoname-workspaces ];
|
||||
file.".config/hyprland-autoname-workspaces/config.toml".text = ''
|
||||
version = "1.1.14"
|
||||
|
||||
[class]
|
||||
VirtualBox = ""
|
||||
steam = ""
|
||||
"VirtualBox Manager" = ""
|
||||
"com.obsproject.Studio" = ""
|
||||
"[Ff]irefox" = ""
|
||||
"[Tt]hunderbird" = ""
|
||||
pcbnew = ""
|
||||
".*.exe" = ""
|
||||
Element = ""
|
||||
Signal = ""
|
||||
Gimp = ""
|
||||
VSCodium = ""
|
||||
"[sS]potify" = ""
|
||||
virt-manager = ""
|
||||
lutris = ""
|
||||
DEFAULT = "{class}"
|
||||
"epicgameslauncher.exe" = ""
|
||||
"[Cc]ode" = ""
|
||||
"galaxyclient.exe" = ""
|
||||
pavucontrol = ""
|
||||
"Tor Browser" = ""
|
||||
mpv = ""
|
||||
chatterino = ""
|
||||
libreoffice-writer = ""
|
||||
kitty = ""
|
||||
"cyberpunk2077.exe" = ""
|
||||
KiCad = ""
|
||||
"[tT]hunar" = ""
|
||||
"riotclientux.exe" = ""
|
||||
libreoffice-calc = ""
|
||||
"org.remmina.Remmina" = ""
|
||||
"org.inkscape.Inkscape" = ""
|
||||
"VirtualBox Machine" = ""
|
||||
Bitwarden = ""
|
||||
"[gG]imp-.*" = ""
|
||||
Chromium = ""
|
||||
obsidian = ""
|
||||
"leagueclientux.exe" = ""
|
||||
zathura = ""
|
||||
code-oss = ""
|
||||
codium-url-handler = ""
|
||||
discord = ""
|
||||
vesktop = ""
|
||||
blueman-manager = ""
|
||||
Alacritty = ""
|
||||
zoom = ""
|
||||
spotify = ""
|
||||
[class]
|
||||
VirtualBox = ""
|
||||
steam = ""
|
||||
"VirtualBox Manager" = ""
|
||||
"com.obsproject.Studio" = ""
|
||||
"[Ff]irefox" = ""
|
||||
"[Tt]hunderbird" = ""
|
||||
pcbnew = ""
|
||||
".*.exe" = ""
|
||||
Element = ""
|
||||
Signal = ""
|
||||
Gimp = ""
|
||||
VSCodium = ""
|
||||
"[sS]potify" = ""
|
||||
virt-manager = ""
|
||||
lutris = ""
|
||||
DEFAULT = "{class}"
|
||||
"epicgameslauncher.exe" = ""
|
||||
"[Cc]ode" = ""
|
||||
"galaxyclient.exe" = ""
|
||||
pavucontrol = ""
|
||||
"Tor Browser" = ""
|
||||
mpv = ""
|
||||
chatterino = ""
|
||||
libreoffice-writer = ""
|
||||
kitty = ""
|
||||
"cyberpunk2077.exe" = ""
|
||||
KiCad = ""
|
||||
"[tT]hunar" = ""
|
||||
"riotclientux.exe" = ""
|
||||
libreoffice-calc = ""
|
||||
"org.remmina.Remmina" = ""
|
||||
"org.inkscape.Inkscape" = ""
|
||||
"VirtualBox Machine" = ""
|
||||
Bitwarden = ""
|
||||
"[gG]imp-.*" = ""
|
||||
Chromium = ""
|
||||
obsidian = ""
|
||||
"leagueclientux.exe" = ""
|
||||
zathura = ""
|
||||
code-oss = ""
|
||||
codium-url-handler = ""
|
||||
discord = ""
|
||||
vesktop = ""
|
||||
blueman-manager = ""
|
||||
Alacritty = ""
|
||||
zoom = ""
|
||||
spotify = ""
|
||||
|
||||
[class_active]
|
||||
"(?i)ExampleOneTerm" = "icon"
|
||||
[class_active]
|
||||
"(?i)ExampleOneTerm" = "icon"
|
||||
|
||||
[initial_class]
|
||||
[initial_class]
|
||||
|
||||
[initial_class_active]
|
||||
[initial_class_active]
|
||||
|
||||
[workspaces_name]
|
||||
[workspaces_name]
|
||||
|
||||
[title_in_class]
|
||||
[title_in_class]
|
||||
|
||||
[title_in_class_active]
|
||||
[title_in_class_active]
|
||||
|
||||
[title_in_initial_class]
|
||||
[title_in_initial_class]
|
||||
|
||||
[title_in_initial_class_active]
|
||||
[title_in_initial_class_active]
|
||||
|
||||
[initial_title_in_class]
|
||||
[initial_title_in_class]
|
||||
|
||||
[initial_title]
|
||||
"Spotify Premium" = ""
|
||||
[initial_title]
|
||||
"Spotify Premium" = ""
|
||||
|
||||
[initial_title_in_class_active]
|
||||
[initial_title_in_class_active]
|
||||
|
||||
[initial_title_in_initial_class]
|
||||
[initial_title_in_initial_class]
|
||||
|
||||
[initial_title_in_initial_class_active]
|
||||
[initial_title_in_initial_class_active]
|
||||
|
||||
[exclude]
|
||||
aProgram = "^$"
|
||||
"" = "^$"
|
||||
"(?i)fcitx" = ".*"
|
||||
"[Ss]team" = "^(Friends List.*)?$"
|
||||
"explorer.exe" = ".*"
|
||||
"(?i)TestApp" = ""
|
||||
[exclude]
|
||||
aProgram = "^$"
|
||||
"" = "^$"
|
||||
"(?i)fcitx" = ".*"
|
||||
"[Ss]team" = "^(Friends List.*)?$"
|
||||
"explorer.exe" = ".*"
|
||||
"(?i)TestApp" = ""
|
||||
|
||||
[format]
|
||||
dedup = false
|
||||
dedup_inactive_fullscreen = false
|
||||
delim = " "
|
||||
workspace = "{id}:{clients}"
|
||||
workspace_empty = "{id}"
|
||||
client = "{icon}"
|
||||
client_fullscreen = "{icon}"
|
||||
client_active = "{icon}"
|
||||
client_dup = "{icon}{counter_sup}"
|
||||
client_dup_active = "*{icon}*{delim}{icon}{counter_unfocused_sup}"
|
||||
client_dup_fullscreen = "[{icon}]{delim}{icon}{counter_unfocused_sup}"
|
||||
'';
|
||||
[format]
|
||||
dedup = false
|
||||
dedup_inactive_fullscreen = false
|
||||
delim = " "
|
||||
workspace = "{id}:{clients}"
|
||||
workspace_empty = "{id}"
|
||||
client = "{icon}"
|
||||
client_fullscreen = "{icon}"
|
||||
client_active = "{icon}"
|
||||
client_dup = "{icon}{counter_sup}"
|
||||
client_dup_active = "*{icon}*{delim}{icon}{counter_unfocused_sup}"
|
||||
client_dup_fullscreen = "[{icon}]{delim}{icon}{counter_unfocused_sup}"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,9 +46,7 @@ let
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
in {
|
||||
home.packages = (with pkgs; [
|
||||
# hyprland itself is a system package
|
||||
hyprland-protocols
|
||||
|
||||
@@ -1,37 +1,32 @@
|
||||
{ config, pkgs, rice, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ rice, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
kitty
|
||||
];
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = rice.font.code.name2;
|
||||
package = rice.font.code.package;
|
||||
};
|
||||
settings = {
|
||||
background = rice.color.background;
|
||||
foreground = rice.color.foreground;
|
||||
cursor = rice.color.foreground;
|
||||
color0 = rice.color.black.base;
|
||||
color8 = rice.color.black.bright;
|
||||
color1 = rice.color.red.base;
|
||||
color9 = rice.color.red.bright;
|
||||
color2 = rice.color.green.base;
|
||||
color10 = rice.color.green.bright;
|
||||
color3 = rice.color.yellow.base;
|
||||
color11 = rice.color.yellow.bright;
|
||||
color4 = rice.color.blue.base;
|
||||
color12 = rice.color.blue.bright;
|
||||
color5 = rice.color.magenta.base;
|
||||
color13 = rice.color.magenta.bright;
|
||||
color6 = rice.color.cyan.base;
|
||||
color14 = rice.color.cyan.bright;
|
||||
color7 = rice.color.white.base;
|
||||
color15 = rice.color.white.bright;
|
||||
background_opacity = builtins.toString rice.transparency;
|
||||
settings = with rice.color; {
|
||||
background = background;
|
||||
foreground = foreground;
|
||||
cursor = foreground;
|
||||
color0 = black.base;
|
||||
color8 = black.bright;
|
||||
color1 = red.base;
|
||||
color9 = red.bright;
|
||||
color2 = green.base;
|
||||
color10 = green.bright;
|
||||
color3 = yellow.base;
|
||||
color11 = yellow.bright;
|
||||
color4 = blue.base;
|
||||
color12 = blue.bright;
|
||||
color5 = magenta.base;
|
||||
color13 = magenta.bright;
|
||||
color6 = cyan.base;
|
||||
color14 = cyan.bright;
|
||||
color7 = white.base;
|
||||
color15 = white.bright;
|
||||
background_opacity = builtins.toString rice.transparency;
|
||||
window_padding_width = 5;
|
||||
remember_window_size = false;
|
||||
};
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
{ pkgs, rice, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ pkgs, rice, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.mako
|
||||
pkgs.libnotify
|
||||
];
|
||||
home.packages = with pkgs; [ libnotify ];
|
||||
services.mako = with rice; {
|
||||
enable = true;
|
||||
defaultTimeout = 5000; # in ms
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
{ config, pkgs, secrets, lib, user, ... }:
|
||||
let
|
||||
sep = " ";
|
||||
in
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
{ config, pkgs, secrets, ... }: let
|
||||
sep = " ";
|
||||
in {
|
||||
home = {
|
||||
file."${config.xdg.dataHome}/nx-gcal-event-credentials.json".text = ''
|
||||
{
|
||||
@@ -26,7 +23,7 @@ lib.mkIf (user != "tv")
|
||||
# (pkgs.python311.withPackages (python-pkgs: [
|
||||
# python-pkgs.google
|
||||
# ]))
|
||||
(writeScriptBin "nx_gcal_event" ''
|
||||
(writeScriptBin "nx_gcal_event" /* python */ ''
|
||||
#!${pkgs.python3}/bin/python3
|
||||
import datetime
|
||||
import os
|
||||
|
||||
99
home-modules/nx2site.nix
Normal file
99
home-modules/nx2site.nix
Normal file
@@ -0,0 +1,99 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
(writeShellApplication {
|
||||
name = "nxmd";
|
||||
text = let
|
||||
ascii_size = (pkgs.writers.writePython3Bin "ascii_size" {
|
||||
# libraries = with pkgs.python311Packages; [ ];
|
||||
flakeIgnore = [];
|
||||
} /* python */ ''
|
||||
from sys import argv
|
||||
|
||||
with open(argv[1], "r", encoding='utf-8') as f:
|
||||
raw = f.read()
|
||||
|
||||
sraw = raw.split("\n")
|
||||
|
||||
linestart = 0
|
||||
lineend = 0
|
||||
started = False
|
||||
for linenum in range(len(sraw)):
|
||||
if sraw[linenum].strip() == "```ascii":
|
||||
linestart = linenum
|
||||
started = True
|
||||
|
||||
if started and sraw[linenum].strip() == "```":
|
||||
lineend = linenum
|
||||
break
|
||||
|
||||
maxwidth = 0
|
||||
for linenum in range(linestart, lineend):
|
||||
linewidth = len(sraw[linenum])
|
||||
if linewidth > maxwidth:
|
||||
maxwidth = linewidth
|
||||
|
||||
print(f"Maximum length of the `ascii` code clock is {maxwidth} characters.")
|
||||
|
||||
px = (1 / maxwidth) * 1500
|
||||
vw = (1 / maxwidth) * 150
|
||||
|
||||
snew = sraw
|
||||
snew[3] = "aaw: " + str(round(vw, 2))
|
||||
snew[4] = "aawm: " + str(round(px, 2))
|
||||
|
||||
new = "\n".join(snew)
|
||||
|
||||
with open(argv[1], "w", encoding='utf-8') as f:
|
||||
f.write(new)
|
||||
print(f"The resulting font sizes are {px}px (aawm) and {vw}vw (aam).")
|
||||
print(f"You can now use the push operation on {argv[1]}.")
|
||||
''
|
||||
);
|
||||
in /* bash */ ''
|
||||
ord=$(date +"%e" | awk '{printf("%d%s\n", $1, ($1==11||$1==12||$1==13)?"th":((($1%10)==1)?"st":((($1%10)==2)?"nd":((($1%10)==3)?"rd":"th"))))}')
|
||||
nxdate="$(date +'%A the ')"
|
||||
nxdate="$nxdate""$ord"
|
||||
nxdate="$nxdate""$(date +' of %B %Y')"
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
echo "Error: No arguments provided."
|
||||
echo "Usage: $0 push <markdown-file>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$1" == "push" ]]; then
|
||||
if [[ ! "$2" =~ \.md$ ]]; then
|
||||
echo "Error: Second argument must be a markdown (.md) file"
|
||||
echo "Usage: $0 push <markdown-file>"
|
||||
exit 1
|
||||
fi
|
||||
pandoc \
|
||||
"$2" \
|
||||
--highlight-style=breezeDark \
|
||||
--standalone \
|
||||
--mathjax \
|
||||
--ascii \
|
||||
--template /var/nginx/assets/template.html \
|
||||
--metadata pdate="$nxdate" \
|
||||
--verbose --from markdown-markdown_in_html_blocks+raw_html \
|
||||
-o /var/nginx/webroot/"$(basename "$2" .md )".html
|
||||
|
||||
echo pushed "$2"
|
||||
elif [[ "$1" == "ascii-size" ]]; then
|
||||
if [[ ! "$2" =~ \.md$ ]]; then
|
||||
echo "Error: Second argument must be a markdown (.md) file"
|
||||
echo "Usage: $0 ascii-size <markdown-file>"
|
||||
exit 1
|
||||
fi
|
||||
${ascii_size}/bin/ascii_size "$2"
|
||||
|
||||
else
|
||||
echo "Error: First argument must be 'push'"
|
||||
echo "Usage: $0 push <markdown-file>"
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
{ config, pkgs, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
libreoffice
|
||||
|
||||
@@ -1,21 +1,20 @@
|
||||
{ config, pkgs, lib, user, ... }:
|
||||
let
|
||||
python-with-packages = pkgs.python3.withPackages (pp: with pp; [
|
||||
ipython
|
||||
pipdeptree
|
||||
requests
|
||||
google google-api-python-client google-auth-httplib2 google-auth-oauthlib
|
||||
debugpy
|
||||
black
|
||||
]);
|
||||
in
|
||||
lib.mkIf (user != "tv")
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
python-with-packages
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
PYTHONPATH = "${python-with-packages}/${python-with-packages.sitePackages}";
|
||||
home = let
|
||||
python-with-packages = pkgs.python3.withPackages (pp: with pp; [
|
||||
ipython
|
||||
pipdeptree
|
||||
requests
|
||||
google google-api-python-client google-auth-httplib2 google-auth-oauthlib
|
||||
debugpy
|
||||
black
|
||||
]);
|
||||
in {
|
||||
packages = [
|
||||
python-with-packages
|
||||
];
|
||||
sessionVariables = {
|
||||
PYTHONPATH = "${python-with-packages}/${python-with-packages.sitePackages}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ pkgs, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
qt = {
|
||||
platformTheme = "gtk";
|
||||
|
||||
@@ -1,114 +1,113 @@
|
||||
{ pkgs, rice, lib, user, ... }:
|
||||
let
|
||||
trdr = "${rice.lib.float-to-drune rice.transparency}";
|
||||
in
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
{ pkgs, rice, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
rofi-wayland
|
||||
];
|
||||
home.file.".config/rofi/config.rasi".text = ''
|
||||
configuration {
|
||||
show-icons: false;
|
||||
display-drun: "";
|
||||
disable-history: false;
|
||||
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>] [<span weight='light' size='small'><i>({exec})</i></span>]";
|
||||
}
|
||||
home.file = let
|
||||
trdr = "${rice.lib.float-to-drune rice.transparency}";
|
||||
in with rice.color; {
|
||||
".config/rofi/config.rasi".text = ''
|
||||
configuration {
|
||||
show-icons: false;
|
||||
display-drun: "";
|
||||
disable-history: false;
|
||||
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>] [<span weight='light' size='small'><i>({exec})</i></span>]";
|
||||
}
|
||||
|
||||
* {
|
||||
font: "${rice.font.code.name2} 12";
|
||||
foreground: ${rice.color.foreground};
|
||||
background-color: ${rice.color.background}${trdr};
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
spacing: 0px;
|
||||
border-width: 0px;
|
||||
}
|
||||
* {
|
||||
font: "${rice.font.code.name2} 12";
|
||||
foreground: ${foreground};
|
||||
background-color: ${background}${trdr};
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
spacing: 0px;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
#window {
|
||||
background-color: ${rice.color.background}${trdr};
|
||||
border: ${builtins.toString rice.border-width}px;
|
||||
border-radius: ${builtins.toString rice.rounding};
|
||||
border-color: ${rice.color.border};
|
||||
}
|
||||
#mainbox {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#message {
|
||||
border: 0px;
|
||||
}
|
||||
#textbox {
|
||||
text-color: ${rice.color.foreground};
|
||||
}
|
||||
#listview {
|
||||
fixed-height: 0;
|
||||
border: 0px;
|
||||
spacing: 0px ;
|
||||
scrollbar: false;
|
||||
padding: 0px;
|
||||
}
|
||||
#window {
|
||||
background-color: ${background}${trdr};
|
||||
border: ${builtins.toString rice.border-width}px;
|
||||
border-radius: ${builtins.toString rice.rounding};
|
||||
border-color: ${border};
|
||||
}
|
||||
#mainbox {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#message {
|
||||
border: 0px;
|
||||
}
|
||||
#textbox {
|
||||
text-color: ${foreground};
|
||||
}
|
||||
#listview {
|
||||
fixed-height: 0;
|
||||
border: 0px;
|
||||
spacing: 0px ;
|
||||
scrollbar: false;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#element {
|
||||
border: 0;
|
||||
padding: 0px;
|
||||
border-radius: ${if rice.rounding > 0 then "2" else "0"}px;
|
||||
}
|
||||
#element {
|
||||
border: 0;
|
||||
padding: 0px;
|
||||
border-radius: ${if rice.rounding > 0 then "2" else "0"}px;
|
||||
}
|
||||
|
||||
#element.normal.normal { background-color: ${rice.color.background}${trdr}; text-color: ${rice.color.accent.base}; }
|
||||
#element.selected.normal { background-color: ${rice.color.tertiary.base}${trdr}; text-color: ${rice.color.background}; }
|
||||
#element.alternate.normal { background-color: ${rice.color.background}${trdr}; text-color: ${rice.color.secondary.base}; }
|
||||
#element.normal.normal { background-color: ${background}${trdr}; text-color: ${accent.base}; }
|
||||
#element.selected.normal { background-color: ${tertiary.base}${trdr}; text-color: ${background}; }
|
||||
#element.alternate.normal { background-color: ${background}${trdr}; text-color: ${secondary.base}; }
|
||||
|
||||
|
||||
#scrollbar {
|
||||
width: ${builtins.toString rice.border-width}px ;
|
||||
border: 0;
|
||||
handle-width: 8px ;
|
||||
padding: 0;
|
||||
}
|
||||
#sidebar {
|
||||
border: ${builtins.toString rice.border-width}px dash;
|
||||
}
|
||||
#button.selected {
|
||||
text-color: ${rice.color.foreground};
|
||||
}
|
||||
#inputbar {
|
||||
spacing: 0;
|
||||
text-color: ${rice.color.background};
|
||||
background-color: ${rice.color.accent.base}${trdr};
|
||||
padding: 0;
|
||||
margine-bottom: 2px;
|
||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||
}
|
||||
#prompt {
|
||||
spacing: 0;
|
||||
background-color: transparent;
|
||||
text-color: ${rice.color.foreground};
|
||||
}
|
||||
#textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ">";
|
||||
margin: 0px 0.3em 0em 0em ;
|
||||
text-color: ${rice.color.background};
|
||||
background-color: transparent;
|
||||
}
|
||||
#case-indicator {
|
||||
spacing: 0;
|
||||
text-color: ${rice.color.foreground};
|
||||
background-color: transparent;
|
||||
}
|
||||
#entry {
|
||||
spacing: 0;
|
||||
text-color: ${rice.color.background};
|
||||
background-color: transparent;
|
||||
placeholder: "";
|
||||
}
|
||||
#scrollbar {
|
||||
width: ${builtins.toString rice.border-width}px ;
|
||||
border: 0;
|
||||
handle-width: 8px ;
|
||||
padding: 0;
|
||||
}
|
||||
#sidebar {
|
||||
border: ${builtins.toString rice.border-width}px dash;
|
||||
}
|
||||
#button.selected {
|
||||
text-color: ${foreground};
|
||||
}
|
||||
#inputbar {
|
||||
spacing: 0;
|
||||
text-color: ${background};
|
||||
background-color: ${accent.base}${trdr};
|
||||
padding: 0;
|
||||
margine-bottom: 2px;
|
||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||
}
|
||||
#prompt {
|
||||
spacing: 0;
|
||||
background-color: transparent;
|
||||
text-color: ${foreground};
|
||||
}
|
||||
#textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ">";
|
||||
margin: 0px 0.3em 0em 0em ;
|
||||
text-color: ${background};
|
||||
background-color: transparent;
|
||||
}
|
||||
#case-indicator {
|
||||
spacing: 0;
|
||||
text-color: ${foreground};
|
||||
background-color: transparent;
|
||||
}
|
||||
#entry {
|
||||
spacing: 0;
|
||||
text-color: ${background};
|
||||
background-color: transparent;
|
||||
placeholder: "";
|
||||
}
|
||||
|
||||
element-text, element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
'';
|
||||
element-text, element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,31 +1,27 @@
|
||||
{ pkgs, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ pkgs, domain, ... }:
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [ sshfs ];
|
||||
file.".ssh/config".text = ''
|
||||
HOST nxace
|
||||
HostName ssh.${domain}
|
||||
User nx2
|
||||
Port 50022
|
||||
|
||||
home.packages = with pkgs; [
|
||||
sshfs
|
||||
];
|
||||
HOST nxacel
|
||||
HostName 192.168.178.32
|
||||
User nx2
|
||||
Port 50022
|
||||
|
||||
|
||||
home.file.".ssh/config".text = ''
|
||||
HOST nxace
|
||||
HostName ssh.nx2.site
|
||||
User nx2
|
||||
Port 50022
|
||||
|
||||
HOST nxacel
|
||||
HostName 192.168.178.32
|
||||
User nx2
|
||||
Port 50022
|
||||
|
||||
HOST nxrpil
|
||||
HostName 192.168.178.31
|
||||
User nx2
|
||||
Port 22
|
||||
|
||||
HOST nxgit
|
||||
HostName ssh.nx2.site
|
||||
User git
|
||||
Port 20022
|
||||
'';
|
||||
HOST nxrpil
|
||||
HostName 192.168.178.31
|
||||
User nx2
|
||||
Port 22
|
||||
|
||||
HOST nxgit
|
||||
HostName ssh.${domain}
|
||||
User git
|
||||
Port 20022
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
{ pkgs, lib, user, rice, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ lib, rice, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.starship
|
||||
];
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
# enableBashIntegration = true;
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
{ pkgs, lib, user, ... }:
|
||||
let
|
||||
{ pkgs, ... }: let
|
||||
vws = pkgs.vale.withStyles (s: [ s.alex s.google ]);
|
||||
in
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
in {
|
||||
home = {
|
||||
packages = [
|
||||
vws
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
{ lib, pkgs, user, rice, ... }:
|
||||
let
|
||||
{ lib, pkgs, user, rice, ... }: let
|
||||
sep = " ";
|
||||
in
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
in {
|
||||
home.packages =
|
||||
let
|
||||
waybar_mode_script = /*bash*/ ''
|
||||
@@ -100,10 +97,10 @@ lib.mkIf (user != "tv")
|
||||
exec = "cclock";
|
||||
restart-interval = 60;
|
||||
};
|
||||
"custom/ctimeremaining" = {
|
||||
exec = "nx_gcal_event lookup";
|
||||
restart-interval = 60;
|
||||
};
|
||||
# "custom/ctimeremaining" = {
|
||||
# exec = "nx_gcal_event lookup";
|
||||
# restart-interval = 60;
|
||||
# };
|
||||
"custom/mode" = {
|
||||
exec = "cat /tmp/waybar-mode";
|
||||
interval = "once";
|
||||
@@ -184,7 +181,6 @@ lib.mkIf (user != "tv")
|
||||
|
||||
#clock,
|
||||
#custom-cclock,
|
||||
#custom-ctimeremaining,
|
||||
#custom-mode,
|
||||
#battery,
|
||||
#cpu,
|
||||
|
||||
@@ -1,98 +1,85 @@
|
||||
{ config, pkgs, lib, user, rice,... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ pkgs, rice,... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
wlogout
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [ wlogout ];
|
||||
file = {
|
||||
".config/wlogout/style.css".text = /* css */ ''
|
||||
* { all: unset; }
|
||||
|
||||
home.file.".config/wlogout/style.css".text = ''
|
||||
* { all: unset; }
|
||||
window {
|
||||
font-family: ${rice.font.code.name}, monospace;
|
||||
font-size: 12pt;
|
||||
color: ${rice.color.foreground};
|
||||
background-color: rgba(0, 0, 0, ${builtins.toString rice.transparency});
|
||||
}
|
||||
|
||||
window {
|
||||
font-family: ${rice.font.code.name}, monospace;
|
||||
font-size: 12pt;
|
||||
color: ${rice.color.foreground};
|
||||
background-color: rgba(0, 0, 0, ${builtins.toString rice.transparency});
|
||||
}
|
||||
button {
|
||||
transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
||||
text-shadow: none;
|
||||
border: none;
|
||||
color: ${rice.color.foreground};
|
||||
background-color: ${rice.color.background};
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
button {
|
||||
transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
||||
text-shadow: none;
|
||||
border: none;
|
||||
color: ${rice.color.foreground};
|
||||
background-color: ${rice.color.background};
|
||||
margin: 5px;
|
||||
}
|
||||
button:hover {
|
||||
color: ${rice.color.blue.base};
|
||||
}
|
||||
|
||||
button:hover {
|
||||
color: ${rice.color.blue.base} ;
|
||||
}
|
||||
|
||||
button:focus {
|
||||
color: ${rice.color.blue.base} ;
|
||||
}
|
||||
'';
|
||||
|
||||
home.file.".config/wlogout/layout".text = ''
|
||||
{
|
||||
"label": "lock",
|
||||
"action": "hyprlock",
|
||||
"text": "[L]ock",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "l"
|
||||
}
|
||||
{
|
||||
"label": "reboot",
|
||||
"action": "systemctl reboot",
|
||||
"text": "[R]eboot",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "r"
|
||||
}
|
||||
{
|
||||
"label": "shutdown",
|
||||
"action": "systemctl poweroff",
|
||||
"text": "[S]hutdown",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "s"
|
||||
}
|
||||
{
|
||||
"label": "logout",
|
||||
"action": "hyprctl dispatch exit 0",
|
||||
"text": "Lo[g]out",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "g"
|
||||
}
|
||||
{
|
||||
"label": "suspend",
|
||||
"action": "systemctl suspend",
|
||||
"text": "S[u]spend",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "u"
|
||||
}
|
||||
{
|
||||
"label": "hibernate",
|
||||
"action": "systemctl hibernate",
|
||||
"text": "[H]ibernate",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "h"
|
||||
}
|
||||
'';
|
||||
# lock { background-image: image(url("./lock.png")); }
|
||||
# lock:focus { background-image: image(url("./lock-hover.png")); }
|
||||
# logout { background-image: image(url("./logout.png")); }
|
||||
# logout:focus { background-image: image(url("./logout-hover.png")); }
|
||||
# suspend { background-image: image(url("./suspend.png")); }
|
||||
# suspend:focus { background-image: image(url("./suspend-hover.png")); }
|
||||
# shutdown { background-image: image(url("./power.png")); }
|
||||
# shutdown:focus { background-image: image(url("./power-hover.png")); }
|
||||
# reboot { background-image: image(url("./restart.png")); }
|
||||
# reboot:focus { background-image: image(url("./restart-hover.png")); }
|
||||
# hibernate { background-image: image(url("./hibernate.png")); }
|
||||
# hibernate:hover { background-image: image(url("./hibernate-hover.png"));}
|
||||
button:focus {
|
||||
color: ${rice.color.blue.base};
|
||||
}
|
||||
'';
|
||||
".config/wlogout/layout".text = /* json */ ''
|
||||
{
|
||||
"label": "lock",
|
||||
"action": "hyprlock",
|
||||
"text": "[L]ock",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "l"
|
||||
}
|
||||
{
|
||||
"label": "reboot",
|
||||
"action": "systemctl reboot",
|
||||
"text": "[R]eboot",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "r"
|
||||
}
|
||||
{
|
||||
"label": "shutdown",
|
||||
"action": "systemctl poweroff",
|
||||
"text": "[S]hutdown",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "s"
|
||||
}
|
||||
{
|
||||
"label": "logout",
|
||||
"action": "hyprctl dispatch exit 0",
|
||||
"text": "Lo[g]out",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "g"
|
||||
}
|
||||
{
|
||||
"label": "suspend",
|
||||
"action": "systemctl suspend",
|
||||
"text": "S[u]spend",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "u"
|
||||
}
|
||||
{
|
||||
"label": "hibernate",
|
||||
"action": "systemctl hibernate",
|
||||
"text": "[H]ibernate",
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"keybind": "h"
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
{ pkgs, lib, system, user, rice, inputs, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ pkgs, system, rice, inputs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# yazi
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ config, pkgs, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.zoxide
|
||||
|
||||
Reference in New Issue
Block a user