diff --git a/system/sound.nix b/system/sound.nix index 40dd701..f04e513 100644 --- a/system/sound.nix +++ b/system/sound.nix @@ -1,6 +1,6 @@ { pkgs, ... }: { - services.pulseaudio.enable = false; + hardware.pulseaudio.enable = false; services.pipewire = { enable = true; wireplumber.enable = true; diff --git a/user/gnome.nix b/user/gnome.nix index 9a3562b..776f095 100644 --- a/user/gnome.nix +++ b/user/gnome.nix @@ -43,7 +43,7 @@ lib.mkIf (config.my.desktop == "gnome") { qt6Packages.qtstyleplugin-kvantum ]; - services.gpg-agent.pinentry.package = pkgs.pinentry-gnome; + services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome; xdg.defaultApplications = { enable = lib.mkForce false; diff --git a/user/home.nix b/user/home.nix index 1778052..334e260 100644 --- a/user/home.nix +++ b/user/home.nix @@ -36,7 +36,6 @@ ./pass.nix ./pqiv.nix ./zathura.nix - ./satty ./man.nix ./mpd.nix ./sway diff --git a/user/satty/config.toml b/user/satty/config.toml deleted file mode 100644 index 84075cb..0000000 --- a/user/satty/config.toml +++ /dev/null @@ -1,63 +0,0 @@ -[general] -# Start Satty in fullscreen mode -fullscreen = true -# Exit directly after copy/save action -early-exit = true -# Draw corners of rectangles round if the value is greater than 0 (0 disables rounded corners) -corner-roundness = 12 -# Select the tool on startup [possible values: pointer, crop, line, arrow, rectangle, text, marker, blur, brush] -initial-tool = "brush" -# Configure the command to be called on copy, for example `wl-copy` -copy-command = "wl-copy" -# Increase or decrease the size of the annotations -# annotation-size-factor = 2 -# Filename to use for saving action. Omit to disable saving to file. Might contain format specifiers: https://docs.rs/chrono/latest/chrono/format/strftime/index.html -# output-filename = "/tmp/test-%Y-%m-%d_%H:%M:%S.png" -# After copying the screenshot, save it to a file as well -# save-after-copy = false -# Hide toolbars by default -# default-hide-toolbars = false -# Experimental: whether window focus shows/hides toolbars. This does not affect initial state of toolbars, see default-hide-toolbars. -# focus-toggles-toolbars = false -# The primary highlighter to use, the other is accessible by holding CTRL at the start of a highlight [possible values: block, freehand] -primary-highlighter = "block" -# Disable notifications -disable-notifications = true -# Actions to trigger on right click (order is important) -# [possible values: save-to-clipboard, save-to-file, exit] -# actions-on-right-click = [] -# Actions to trigger on Enter key (order is important) -# [possible values: save-to-clipboard, save-to-file, exit] -# actions-on-enter = ["save-to-clipboard"] -# Actions to trigger on Escape key (order is important) -# [possible values: save-to-clipboard, save-to-file, exit] -# actions-on-escape = ["exit"] -# Action to perform when the Enter key is pressed [possible values: save-to-clipboard, save-to-file] -# Deprecated: use actions-on-enter instead -action-on-enter = "save-to-clipboard" -# Right click to copy -# Deprecated: use actions-on-right-click instead -# right-click-copy = false -# request no window decoration. Please note that the compositor has the final say in this. At this point. requires xdg-decoration-unstable-v1. -# no-window-decoration = true -# experimental feature: adjust history size for brush input smooting (0: disabled, default: 0, try e.g. 5 or 10) -# brush-smooth-history-size = 10 - -# Font to use for text annotations -[font] -family = "Roboto" -style = "Bold" - -# Custom colours for the colour palette -[color-palette] -# These will be shown in the toolbar for quick selection -palette = [ - "#ff0000", - "#00ffff", - "#a52a2a", - "#dc143c", - "#ff1493", - "#ffd700", - "#008000", -] - diff --git a/user/satty/default.nix b/user/satty/default.nix deleted file mode 100644 index 5709b77..0000000 --- a/user/satty/default.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - pkgs, - lib, - config, - ... -}: -let - cfg = config.my.satty; -in -{ - options.my.satty.enable = lib.mkEnableOption { }; - - config = lib.mkIf cfg.enable { - xdg.configFile."satty/config.toml" = { - source = ./config.toml; - }; - - home.packages = with pkgs; [ - satty - ]; - }; -} diff --git a/user/sway/default.nix b/user/sway/default.nix index 5fbd379..596fdde 100644 --- a/user/sway/default.nix +++ b/user/sway/default.nix @@ -32,7 +32,6 @@ in my.swaylock.enable = true; my.mpd.enable = true; my.zathura.enable = true; - my.satty.enable = true; my.waybar.enable = true; my.gammastep.enable = true; @@ -124,7 +123,7 @@ in indicator = true; }; - services.gpg-agent.pinentry.package = pkgs.pinentry-all; + services.gpg-agent.pinentryPackage = pkgs.pinentry-all; xdg.configFile."OpenTabletDriver/settings.json" = { force = true; diff --git a/user/sway/mako.nix b/user/sway/mako.nix index 6c78c9f..28b5eb4 100644 --- a/user/sway/mako.nix +++ b/user/sway/mako.nix @@ -20,22 +20,21 @@ in config = lib.mkIf cfg.enable { services.mako = { enable = true; + borderSize = 2; + padding = "5"; + margin = "15"; + layer = "overlay"; + + font = "${font.interface} ${toString font.size.small}"; + textColor = color.txt; + + backgroundColor = color.bg; + borderColor = accent.color; + progressColor = "over ${accent.color}88"; + + defaultTimeout = 10000; settings = { - border-size = 2; - padding = "5"; - margin = "15"; - layer = "overlay"; - - font = "${font.interface} ${toString font.size.small}"; - text-color = color.txt; - - background-color = color.bg; - border-color = accent.color; - progress-color = "over ${accent.color}88"; - - default-timeout = 10000; - "app-name=volumesh" = { "default-timeout" = "5000"; "group-by" = "app-name"; diff --git a/user/sway/sway-binds.nix b/user/sway/sway-binds.nix index ae71cf4..fd05236 100644 --- a/user/sway/sway-binds.nix +++ b/user/sway/sway-binds.nix @@ -172,7 +172,7 @@ let "${mod}+Return" = "exec ${terminal}"; "${mod}+Ctrl+Return" = "exec thunar"; "${mod}+Shift+s" = '' - exec grim - | satty --filename - --output-filename "$(xdg-user-dir PICTURES)"/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png + exec grim - | satty --filename - --fullscreen --output-filename "$(xdg-user-dir PICTURES)"/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png ''; "${mod}+Ctrl+v" = "exec wl-paste | tesseract -l por - - | wl-copy"; "${mod}+k" = "exec showkeys"; diff --git a/user/vscode/default.nix b/user/vscode/default.nix index e9a97cb..b8afdfd 100644 --- a/user/vscode/default.nix +++ b/user/vscode/default.nix @@ -4,7 +4,7 @@ programs.vscode = { enable = true; package = pkgs.vscodium; - profiles.default.extensions = with pkgs.vscode-extensions; [ + extensions = with pkgs.vscode-extensions; [ jnoortheen.nix-ide github.github-vscode-theme rust-lang.rust-analyzer diff --git a/user/waybar/default.nix b/user/waybar/default.nix index 5af72bc..fc95ff1 100644 --- a/user/waybar/default.nix +++ b/user/waybar/default.nix @@ -234,19 +234,23 @@ in }; } ]; - style = pkgs.replaceVars ./style.css { - accent_color = accent.color; + style = builtins.readFile ( + pkgs.substituteAll { + src = ./style.css; - color_bg = color.bg; - color_bg_dark = color.bg_dark; - color_bg_light = color.bg_light; - color_txt = color.txt; + accent_color = accent.color; - font_interface = font.interface; + color_bg = color.bg; + color_bg_dark = color.bg_dark; + color_bg_light = color.bg_light; + color_txt = color.txt; - font_size_big = "${toString font.size.big}px"; - font_size_medium = "${toString font.size.medium}px"; - }; + font_interface = font.interface; + + font_size_big = "${toString font.size.big}px"; + font_size_medium = "${toString font.size.medium}px"; + } + ); }; home.packages = with pkgs; [ waybar ]; };