chore(solterra): rename python to solterra

python is not a good hostname, subaru cars are better.
This commit is contained in:
Artur Manuel 2025-03-01 14:12:25 +00:00
commit 526881811c
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
26 changed files with 57 additions and 121 deletions

107
hosts/solterra/apps.nix Normal file
View file

@ -0,0 +1,107 @@
{
inputs,
pkgs,
lib,
...
}: {
environment = {
systemPackages = builtins.attrValues {
inherit
(pkgs)
nil
statix
deadnix
alejandra
;
};
};
alqueva = {
programs = {
swaybg = {
enable = true;
wallpaper = inputs.wallpkgs.wallpapers.everforest-foggy_valley_1.path;
};
waybar = {
enable = true;
package = pkgs.waybar;
};
sleep-or-die = {
enable = true;
title = "It's bed time, lil bro.";
message = "Go to bed now vro... you don't want to see a nice guy lose his temper... You have one hour.";
image = ../../media/king_von.png;
sound = ../../media/majoras_mask_bell.wav;
};
direnv.enable = true;
git.enable = true;
openssh.enable = true;
};
shells = {
nushell = {
enable = true;
package = pkgs.amadaluzian-nu;
};
xonsh = {
enable = true;
package = pkgs.amadaluzian-xonsh;
};
};
system.pipewire.enable = true;
wms.niri.enable = true;
};
programs.nh = {
enable = true;
clean.enable = true;
package = pkgs.symlinkJoin {
name = "nh";
paths = [
pkgs.nh
];
nativeBuildInputs = [
pkgs.makeWrapper
];
postBuild = ''
wrapProgram $out/bin/nh \
--set FLAKE "/home/artur/.config/nixos"
'';
meta = {inherit (pkgs.nh.meta) mainProgram;};
};
};
services = {
deluge = {
enable = true;
web.enable = false;
};
rsyncd.enable = true;
emacs = {
enable = true;
package = inputs.pankomacs.packages.${pkgs.system}.pgtk;
startWithGraphical = true;
install = true;
defaultEditor = true;
};
};
programs.git.config = {
gpg.format = "ssh";
user = {
email = "amad@atl.tools";
name = "Artur Manuel";
signingKey = "~/.ssh/id_ed25519.pub";
};
};
nix.gc.automatic = lib.mkForce false;
xdg.mime = {
enable = true;
defaultApplications = {
"text/html" = ["org.qutebrowser.qutebrowser.desktop"];
"x-scheme-handler/http" = ["org.qutebrowser.qutebrowser.desktop"];
"x-scheme-handler/https" = ["org.qutebrowser.qutebrowser.desktop"];
};
};
}

View file

@ -0,0 +1,58 @@
{
pkgs,
inputs,
...
}: {
imports = [
./users/amadaluzia
./hardware.nix
./disks.nix
./theme.nix
./apps.nix
./fonts.nix
./forgejo.nix
];
config = {
boot = {
initrd.systemd.additionalUpstreamUnits = ["systemd-boot.service"];
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
nixpkgs.overlays = [
inputs.alqages.overlays.default
];
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
services = {
xserver.xkb = {
layout = "us";
options = "eurosign:e,ctrl:nocaps";
};
udev.packages = [
pkgs.android-udev-rules
];
libinput.enable = true;
openssh.enable = true;
};
hardware.graphics = {
enable = true;
enable32Bit = false;
};
networking.networkmanager.enable = true;
time.timeZone = "Europe/London";
i18n.defaultLocale = "de_DE.UTF-8";
system.stateVersion = "24.11";
};
}

67
hosts/solterra/disks.nix Normal file
View file

@ -0,0 +1,67 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/disk/by-id/nvme-WDC_PC_SN520_SDAPNUW-256G-1014_20270F804683";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = ["defaults"];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "utero";
passwordFile = "/tmp/secret.key"; # Interactive
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"/@root" = {
mountpoint = "/";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/@home" = {
mountpoint = "/home";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/@nix" = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/@swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "8G";
};
};
};
};
};
};
};
};
};
};
}

23
hosts/solterra/fonts.nix Normal file
View file

@ -0,0 +1,23 @@
{pkgs, ...}: let
comfy = pkgs.iosevka-comfy;
in {
alqueva.system.fonts = {
names = {
sansSerif = ["Iosevka Comfy"];
monospace = ["Iosevka Comfy Fixed"];
serif = ["IBM Plex Serif"];
emoji = ["Twitter Color Emoji"];
};
packages = {
sansSerif = [comfy.comfy];
monospace = [comfy.comfy-fixed];
serif = [pkgs.ibm-plex];
emoji = [pkgs.twemoji-color-font];
extra = [
pkgs.noto-fonts
pkgs.nerd-fonts.symbols-only
];
};
enable = true;
};
}

View file

@ -0,0 +1,51 @@
{config, ...}: let
cfg = config.services.forgejo;
srv = cfg.settings.server;
in {
services.nginx = {
virtualHosts.${cfg.settings.server.DOMAIN} = {
forceSSL = true;
enableACME = true;
extraConfig = ''
client_max_body_size 512M;
'';
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
};
};
services.forgejo = {
enable = true;
database.type = "postgres";
# Enable support for Git Large File Storage
lfs.enable = true;
settings = {
server = {
DOMAIN = "192.168.1.252";
# You need to specify this to remove the port from URLs in the web UI.
ROOT_URL = "http://${srv.DOMAIN}:${toString srv.HTTP_PORT}/";
HTTP_PORT = 3000;
};
# You can temporarily allow registration to create an admin user.
service.DISABLE_REGISTRATION = false;
# Add support for actions, based on act: https://github.com/nektos/act
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
# Sending emails is completely optional
# You can send a test email from the web UI at:
# Profile Picture > Site Administration > Configuration > Mailer Configuration
mailer = {
ENABLED = true;
SMTP_ADDR = "mail.example.com";
FROM = "noreply@${srv.DOMAIN}";
USER = "noreply@${srv.DOMAIN}";
PASSWD = "password"; # Locally hosted instance a.k.a. NO ONE CARES.
};
default = {
APP_NAME = "Amadajo";
APP_SLOGAN = "Fun little instance I just have on my config...";
};
};
};
}

View file

@ -0,0 +1,28 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

56
hosts/solterra/theme.nix Normal file
View file

@ -0,0 +1,56 @@
{
pkgs,
config,
...
}: let
themes = {
# gtk-theme = pkgs.everforest-gtk-theme;
gtk-theme = pkgs.everforest-gtk-theme.overrideAttrs (finalAttrs: {
version = "0-unstable-2024-11-06";
src = pkgs.fetchFromGitHub {
owner = "Fausto-Korpsvart";
repo = finalAttrs.pname;
rev = "43cbe4f1aeba8b46e41836de4c8ea7ac398db119";
hash = "sha256-Z46i0Ihpzo4LhFvzKsvnzcHFzeYxJMvQmg2k6lmjGH0=";
};
nativeBuildInputs =
(finalAttrs.nativeBuildInputs or [])
++ [
pkgs.sassc
];
installPhase = ''
runHook preInstall
mkdir -p "$out"/share/{icons,themes}
cp -a icons/* "$out"/share/icons/
patchShebangs ./themes/install.sh
./themes/install.sh -d "$out"/share/themes/
runHook postInstall
'';
});
icon-theme = themes.gtk-theme;
cursor-theme = pkgs.simp1e-cursors;
};
cfg = config.alqueva.system.dconf;
in {
alqueva.system.dconf = {
enable = true;
luminosity = "dark";
theme = "everforest-gtk-theme-0-unstable-2024-11-06-Dark";
icon.theme = "Everforest-Dark";
cursor = {
size = 24;
theme = "Simp1e-Gruvbox-Dark";
};
};
qt = {
enable = true;
platformTheme = "gnome";
style = "adwaita-dark";
};
environment.systemPackages = builtins.attrValues themes;
systemd.user.tmpfiles.rules = [
"L+ %h/.config/gtk-4.0 - - - - ${themes.gtk-theme}/share/themes/${cfg.theme}/gtk-4.0"
];
}

View file

@ -0,0 +1,486 @@
# See dunst(5) for all configuration options
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a window manager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern window managers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = none
### Geometry ###
# The width of the window, excluding the frame.
# dynamic width from 0 to 300
# width = (0, 300)
# constant width of 300
width = 400
# The height of a single notification, excluding the frame.
# dynamic height from 0 to 300
# height = (0, 300)
# constant height of 300
height = 400
# NOTE: Dunst from version 1.11 and older don't support dynamic height
# and the given value is treated as the maximum height
# Position the notification in the top right corner
origin = top-right
offset = (9, 9)
# Scale factor. It is auto-detected if value is 0.
scale = 0
# Maximum number of notification (0 means no limit)
notification_limit = 20
### Progress bar ###
# Turn on the progress bar. It appears when a progress hint is passed with
# for example dunstify -h int:value:12
progress_bar = true
# Set the progress bar height. This includes the frame, so make sure
# it's at least twice as big as the frame width.
progress_bar_height = 10
# Set the frame width of the progress bar
progress_bar_frame_width = 1
# Set the minimum width for the progress bar
progress_bar_min_width = 150
# Set the maximum width for the progress bar
progress_bar_max_width = 300
# Corner radius for the progress bar. 0 disables rounded corners.
progress_bar_corner_radius = 0
# Define which corners to round when drawing the progress bar. If progress_bar_corner_radius
# is set to 0 this option will be ignored.
progress_bar_corners = all
# Corner radius for the icon image.
icon_corner_radius = 0
# Define which corners to round when drawing the icon image. If icon_corner_radius
# is set to 0 this option will be ignored.
icon_corners = all
# Show how many messages are currently hidden (because of
# notification_limit).
indicate_hidden = yes
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.). (X11 only)
transparency = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
# If gap_size is greater than 0, this setting will be ignored.
separator_height = 0
# Padding between text and separator.
padding = 4
# Horizontal padding.
horizontal_padding = 4
# Padding between text and icon.
text_icon_padding = 0
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 1
# Defines color of the frame around the notification window.
frame_color = "#e5e9f0"
# Size of gap to display between notifications - requires a compositor.
# If value is greater than 0, separator_height will be ignored and a border
# of size frame_width will be drawn around each notification instead.
# Click events on gaps do not currently propagate to applications below.
gap_size = 4
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Sort type.
# possible values are:
# * id: sort by id
# * urgency_ascending: sort by urgency (low then normal then critical)
# * urgency_descending: sort by urgency (critical then normal then low)
# * update: sort by update (most recent always at the top)
sort = yes
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# A client can set the 'transient' hint to bypass this. See the rules
# section for how to disable this if necessary
# idle_threshold = 120
### Text ###
font = Monospace 14
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
line_height = 0
# Possible values are:
# full: Allow a small subset of html markup in notifications:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <https://docs.gtk.org/Pango/pango_markup.html>.
#
# strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the
# server. Dunst will try to strip the markup but the parsing is
# simplistic so using this option outside of matching rules for
# specific applications *IS GREATLY DISCOURAGED*.
#
# no: Disable markup parsing, incoming notifications will be treated as
# plain text. Dunst will not advertise that it has the body-markup
# capability if this is set as a global setting.
#
# It's important to note that markup inside the format option will be parsed
# regardless of what this is set to.
markup = full
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b"
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# Vertical alignment of message text and icon.
# Possible values are "top", "center" and "bottom".
vertical_alignment = center
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = 60
# Specify where to make an ellipsis in long lines.
# Possible values are "start", "middle" and "end".
ellipsize = middle
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Stack together notifications with the same content
stack_duplicates = true
# Hide the count of stacked notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
### Icons ###
# Recursive icon lookup. You can set a single theme, instead of having to
# define all lookup paths.
enable_recursive_icon_lookup = true
# Set icon theme (only used for recursive icon lookup)
icon_theme = Adwaita
# You can also set multiple icon themes, with the leftmost one being used first.
# icon_theme = "Adwaita, breeze"
# Align icons left/right/top/off
icon_position = left
# Scale small icons up to this size, set to 0 to disable. Helpful
# for e.g. small files or high-dpi screens. In case of conflict,
# max_icon_size takes precedence over this.
min_icon_size = 32
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 128
# Paths to default icons (only necessary when not using recursive icon lookup)
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
### History ###
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
### Misc/Advanced ###
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst (X11 only)
title = Dunst
# Define the class of the windows spawned by dunst (X11 only)
class = Dunst
# Define the corner radius of the notification window
# in pixel size. If the radius is 0, you have no rounded
# corners.
# The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons.
corner_radius = 0
# Define which corners to round when drawing the window. If the corner radius
# is set to 0 this option will be ignored.
#
# Comma-separated list of the corners. The accepted corner values are bottom-right,
# bottom-left, top-right, top-left, top, bottom, left, right or all.
corners = all
# Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the
# user defined timeout.
ignore_dbusclose = false
### Wayland ###
# These settings are Wayland-specific. They have no effect when using X11
# Uncomment this if you want to let notifications appear under fullscreen
# applications (default: overlay)
# layer = top
# Set this to true to use X11 output on Wayland.
force_xwayland = false
### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support.
# This setting is provided for compatibility with older nVidia drivers that
# do not support RandR and using it on systems that support RandR is highly
# discouraged.
#
# By enabling this setting dunst will not be able to detect when a monitor
# is connected or disconnected which might break follow mode if the screen
# layout changes.
force_xinerama = false
### mouse
# Defines list of actions for each mouse event
# Possible values are:
# * none: Don't do anything.
# * do_action: Invoke the action determined by the action_name rule. If there is no
# such action, open the context menu.
# * open_url: If the notification has exactly one url, open it. If there are multiple
# ones, open the context menu.
# * close_current: Close current notification.
# * close_all: Close all notifications.
# * context: Open context menu for the notification.
# * context_all: Open context menu for all notifications.
# These values can be strung together for each mouse event, and
# will be executed in sequence.
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]
# Calculate the dpi to use on a per-monitor basis.
# If this setting is enabled the Xft.dpi value will be ignored and instead
# dunst will attempt to calculate an appropriate dpi value for each monitor
# using the resolution and physical size. This might be useful in setups
# where there are multiple screens with very different dpi values.
per_monitor_dpi = false
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#2b3339"
foreground = "#d3c6aa"
timeout = 10
# Icon for notifications with low urgency
default_icon = dialog-information
[urgency_normal]
background = "#343f44"
foreground = "#d3c6aa"
timeout = 10
override_pause_level = 30
# Icon for notifications with normal urgency
default_icon = dialog-information
[urgency_critical]
background = "#543a48"
foreground = "#d3c6aa"
frame_color = "#d3c6aa"
timeout = 0
override_pause_level = 60
# Icon for notifications with critical urgency
default_icon = dialog-warning
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
#
# Messages can be matched by
# appname (discouraged, see desktop_entry)
# body
# category
# desktop_entry
# icon
# match_transient
# msg_urgency
# stack_tag
# summary
#
# and you can override the
# background
# foreground
# format
# frame_color
# fullscreen
# new_icon
# set_stack_tag
# set_transient
# set_category
# timeout
# urgency
# icon_position
# skip_display
# history_ignore
# action_name
# word_wrap
# ellipsize
# alignment
# hide_text
# override_pause_level
#
# Shell-like globbing will get expanded.
#
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
# GLib based applications export their desktop-entry name. In comparison to the appname,
# the desktop-entry won't get localized.
#
# You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level.
# This can be used to set partial pause modes, where more urgent notifications get through, but less urgent stay paused. To do that, you can override the following in the rules:
# override_pause_level = X
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
# Disable the transient hint so that idle_threshold cannot be bypassed from the
# client
#[transient_disable]
# match_transient = yes
# set_transient = no
#
# Make the handling of transient notifications more strict by making them not
# be placed in history.
#[transient_history_ignore]
# match_transient = yes
# history_ignore = yes
# fullscreen values
# show: show the notifications, regardless if there is a fullscreen window opened
# delay: displays the new notification, if there is no fullscreen window active
# If the notification is already drawn, it won't get undrawn.
# pushback: same as delay, but when switching into fullscreen, the notification will get
# withdrawn from screen again and will get delayed like a new notification
#[fullscreen_delay_everything]
# fullscreen = delay
#[fullscreen_show_critical]
# msg_urgency = critical
# fullscreen = show
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# skip_display = true
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[skip-display]
# # This notification will not be displayed, but will be included in the history
# summary = "foobar"
# skip_display = yes
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
#[stack-volumes]
# appname = "some_volume_notifiers"
# set_stack_tag = "volume"
#
# vim: ft=cfg

View file

@ -0,0 +1,29 @@
[main]
pad=8x8
font=monospace:size=13
[colors]
foreground=e5e9f0
background=2e3440
regular0=3b4252
regular1=bf616a
regular2=a3be8c
regular3=ebcb8b
regular4=81a1c1
regular5=b48ead
regular6=88c0d0
regular7=eceff4
bright0=434c5e
bright1=bf616a
bright2=a3be8c
bright3=ebcb8b
bright4=81a1c1
bright5=b48ead
bright6=88c0d0
bright7=8fbcbb
16=d08770
17=5e81ac
18=3b4252
19=434c5e
20=d8dee9
21=eceff4

View file

@ -0,0 +1,3 @@
profile {
output HDMI-A-1 mode 1920x1080@100Hz
}

View file

@ -0,0 +1,73 @@
# vim:ft=kitty
## name: Nord
## author: Eric N. Vander Weele
## upstream: https://www.nordtheme.com/
## blurb: Nord theme utilizing the full Frost and Aurora palette.
# Basic colors
foreground #d8dee9
background #2e3440
selection_foreground #d8dee9
selection_background #434c5e
# Cursor colors
cursor #d8dee9
cursor_text_color #3b4252
# URL underline color when hovering with mouse
url_color #0087bd
# Window border colors and terminal bell colors
active_border_color #81a1c1
inactive_border_color #4c566a
bell_border_color #88c0d0
visual_bell_color none
# Tab bar colors
active_tab_foreground #3b4252
active_tab_background #88c0d0
inactive_tab_foreground #e5e9f0
inactive_tab_background #4c566a
tab_bar_background #3b4252
tab_bar_margin_color none
# Mark colors (marked text in the terminal)
mark1_foreground #3b4252
mark1_background #88c0d0
mark2_foreground #3b4252
mark2_background #bf616a
mark3_foreground #3b4252
mark3_background #ebcb8b
# The basic 16 colors
# black
color0 #3b4252
color8 #4c566a
# red
color1 #bf616a
color9 #bf616a
# green
color2 #a3be8c
color10 #a3be8c
# yellow
color3 #ebcb8b
color11 #d08770
# blue
color4 #81a1c1
color12 #5e81ac
# magenta
color5 #b48ead
color13 #b48ead
# cyan
color6 #88c0d0
color14 #8fbcbb
# white
color7 #e5e9f0
color15 #eceff4

View file

@ -0,0 +1,15 @@
include current-theme.conf
font_family monospace
bold_font auto
italic_font auto
bold_italic_font auto
font_size 14.0
disable_ligatures always
wayland_titlebar_color background
confirm_os_window_close 0
enable_audio_bell no
close_on_child_death no
window_padding_width 8

View file

@ -0,0 +1,536 @@
// This config is in the KDL format: https://kdl.dev
// "/-" comments out the following node.
// Check the wiki for a full description of the configuration:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Overview
// Input device configuration.
// Find the full list of options on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
input {
keyboard {
xkb {
// You can set rules, model, layout, variant and options.
// For more information, see xkeyboard-config(7).
// For example:
// layout "us,ru"
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
}
}
// Next sections include libinput settings.
// Omitting settings disables them, or leaves them at their default values.
/-touchpad {
// off
tap
// dwt
// dwtp
natural-scroll
// accel-speed 0.2
// accel-profile "flat"
// scroll-method "two-finger"
// disabled-on-external-mouse
}
mouse {
// off
// natural-scroll
// accel-speed 0.2
// accel-profile "flat"
// scroll-method "no-scroll"
}
/-trackpoint {
// off
// natural-scroll
// accel-speed 0.2
// accel-profile "flat"
// scroll-method "on-button-down"
// scroll-button 273
// middle-emulation
}
// Uncomment this to make the mouse warp to the center of newly focused windows.
// warp-mouse-to-focus
// Focus windows and outputs automatically when moving the mouse into them.
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
// focus-follows-mouse max-scroll-amount="0%"
}
// You can configure outputs by their name, which you can find
// by running `niri msg outputs` while inside a niri instance.
// The built-in laptop monitor is usually called "eDP-1".
// Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs Remember to uncomment the node by removing "/-"!
output "HDMI-A-1" {
// Uncomment this line to disable this output.
// off
// Resolution and, optionally, refresh rate of the output.
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
// If the refresh rate is omitted, niri will pick the highest refresh rate
// for the resolution.
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
mode "1920x1080@100"
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
scale 1
// Transform allows to rotate the output counter-clockwise, valid values are:
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
transform "normal"
// Position of the output in the global coordinate space.
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
// The cursor can only move between directly adjacent outputs.
// Output scale and rotation has to be taken into account for positioning:
// outputs are sized in logical, or scaled, pixels.
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
// so to put another output directly adjacent to it on the right, set its x to 1920.
// If the position is unset or results in an overlap, the output is instead placed
// automatically.
position x=1280 y=0
}
// Settings that influence how windows are positioned and sized.
// Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
layout {
// Set gaps around windows in logical pixels.
gaps 10
// When to center a column when changing focus, options are:
// - "never", default behavior, focusing an off-screen column will keep at the left
// or right edge of the screen.
// - "always", the focused column will always be centered.
// - "on-overflow", focusing a column will center it if it doesn't fit
// together with the previously focused column.
center-focused-column "never"
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
preset-column-widths {
// Proportion sets the width as a fraction of the output width, taking gaps into account.
// For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
// The default preset widths are 1/3, 1/2 and 2/3 of the output.
proportion 0.33333
proportion 0.5
proportion 0.66667
// Fixed sets the width in logical pixels exactly.
// fixed 1920
}
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
// preset-window-heights { }
// You can change the default width of the new windows.
default-column-width { proportion 0.5; }
// If you leave the brackets empty, the windows themselves will decide their initial width.
// default-column-width {}
// By default focus ring and border are rendered as a solid background rectangle
// behind windows. That is, they will show up through semitransparent windows.
// This is because windows using client-side decorations can have an arbitrary shape.
//
// If you don't like that, you should uncomment `prefer-no-csd` below.
// Niri will draw focus ring and border *around* windows that agree to omit their
// client-side decorations.
//
// Alternatively, you can override it with a window rule called
// `draw-border-with-background`.
// You can change how the focus ring looks.
focus-ring {
// Uncomment this line to disable the focus ring.
// off
// How many logical pixels the ring extends out from the windows.
width 2
// Colors can be set in a variety of ways:
// - CSS named colors: "red"
// - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
// Color of the ring on the active monitor.
active-color "#a7c080"
// Color of the ring on inactive monitors.
inactive-color "#d3c6aa"
// You can also use gradients. They take precedence over solid colors.
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
// The angle is the same as in linear-gradient, and is optional,
// defaulting to 180 (top-to-bottom gradient).
// You can use any CSS linear-gradient tool on the web to set these up.
// Changing the color space is also supported, check the wiki for more info.
//
// active-gradient from="#80c8ff" to="#bbddff" angle=45
// You can also color the gradient relative to the entire view
// of the workspace, rather than relative to just the window itself.
// To do that, set relative-to="workspace-view".
//
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
// You can also add a border. It's similar to the focus ring, but always visible.
border {
// The settings are the same as for the focus ring.
// If you enable the border, you probably want to disable the focus ring.
off
width 0
active-color "#ffc87f"
inactive-color "#505050"
// active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
// You can think of them as a kind of outer gaps. They are set in logical pixels.
// Left and right struts will cause the next window to the side to always be visible.
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
// layer-shell panels and regular gaps.
struts {
// left 64
// right 64
// top 64
// bottom 64
}
}
// Add lines like this to spawn processes at startup.
// Note that running niri as a session supports xdg-desktop-autostart,
// which may be more convenient to use.
// See the binds section below for more spawn examples.
// spawn-at-startup "waybar"
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
// If the client will specifically ask for CSD, the request will be honored.
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
// This option will also fix border/focus ring drawing behind some semitransparent windows.
// After enabling or disabling this, you need to restart the apps for this to take effect.
prefer-no-csd
// You can change the path where screenshots are saved.
// A ~ at the front will be expanded to the home directory.
// The path is formatted with strftime(3) to give you the screenshot date and time.
screenshot-path "~/Afbeeldingen/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
// You can also set this to null to disable saving screenshots to disk.
// screenshot-path null
// Animation settings.
// The wiki explains how to configure individual animations:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Animations
animations {
// Uncomment to turn off all animations.
// off
// Slow down all animations by this factor. Values below 1 speed them up instead.
slowdown 0.8
}
// Window rules let you adjust behavior for individual windows.
// Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
layer-rule {
shadow {
on
softness 10
spread 1
draw-behind-window true
color "#00000030"
}
}
window-rule {
match is-floating=true
shadow {
on
softness 20
spread 10
draw-behind-window true
color "#00000040"
}
}
// Work around WezTerm's initial configure bug
// by setting an empty default-column-width.
window-rule {
// This regular expression is intentionally made as specific as possible,
// since this is the default config, and we want no false positives.
// You can get away with just app-id="wezterm" if you want.
match app-id=r#"^org\.wezfurlong\.wezterm$"#
default-column-width {}
}
// Open the Firefox picture-in-picture player as floating by default.
window-rule {
// This app-id regular expression will work for both:
// - host Firefox (app-id is "firefox")
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
open-floating true
}
// Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.)
/-window-rule {
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
match app-id=r#"^org\.gnome\.World\.Secrets$"#
block-out-from "screen-capture"
// Use this instead if you want them visible on third-party screenshot tools.
// block-out-from "screencast"
}
// Example: enable rounded corners for all windows.
// (This example rule is commented out with a "/-" in front.)
/-window-rule {
geometry-corner-radius 6
clip-to-geometry true
}
binds {
// Keys consist of modifiers separated by + signs, followed by an XKB key name
// in the end. To find an XKB name for a particular key, you may use a program
// like wev.
//
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
// when running as a winit window.
//
// Most actions that you can bind here can also be invoked programmatically with
// `niri msg action do-something`.
// Mod-Shift-/, which is usually the same as Mod-?,
// shows a list of important hotkeys.
Mod+Shift+Slash { show-hotkey-overlay; }
// Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T { spawn "emacs"; }
Mod+D { spawn "rofi" "-show" "drun"; }
// Super+Alt+L { spawn "swaylock"; }
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
// Note: the entire command goes as a single argument in the end.
// Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }
// Example volume keys mappings for PipeWire & WirePlumber.
// The allow-when-locked=true property makes them work even when the session is locked.
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
Mod+Q { close-window; }
Mod+Left { focus-column-left; }
Mod+Down { focus-window-down; }
Mod+Up { focus-window-up; }
Mod+Right { focus-column-right; }
Mod+H { focus-column-left; }
Mod+J { focus-window-down; }
Mod+K { focus-window-up; }
Mod+L { focus-column-right; }
Mod+Ctrl+Left { move-column-left; }
Mod+Ctrl+Down { move-window-down; }
Mod+Ctrl+Up { move-window-up; }
Mod+Ctrl+Right { move-column-right; }
Mod+Ctrl+H { move-column-left; }
Mod+Ctrl+J { move-window-down; }
Mod+Ctrl+K { move-window-up; }
Mod+Ctrl+L { move-column-right; }
// Alternative commands that move across workspaces when reaching
// the first or last window in a column.
// Mod+J { focus-window-or-workspace-down; }
// Mod+K { focus-window-or-workspace-up; }
// Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
Mod+Home { focus-column-first; }
Mod+End { focus-column-last; }
Mod+Ctrl+Home { move-column-to-first; }
Mod+Ctrl+End { move-column-to-last; }
Mod+Shift+Left { focus-monitor-left; }
Mod+Shift+Down { focus-monitor-down; }
Mod+Shift+Up { focus-monitor-up; }
Mod+Shift+Right { focus-monitor-right; }
Mod+Shift+H { focus-monitor-left; }
Mod+Shift+J { focus-monitor-down; }
Mod+Shift+K { focus-monitor-up; }
Mod+Shift+L { focus-monitor-right; }
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
// Alternatively, there are commands to move just a single window:
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
// ...
// And you can also move a whole workspace to another monitor:
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
// ...
Mod+Page_Down { focus-workspace-down; }
Mod+Page_Up { focus-workspace-up; }
Mod+U { focus-workspace-down; }
Mod+I { focus-workspace-up; }
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
Mod+Ctrl+U { move-column-to-workspace-down; }
Mod+Ctrl+I { move-column-to-workspace-up; }
// Alternatively, there are commands to move just a single window:
// Mod+Ctrl+Page_Down { move-window-to-workspace-down; }
// ...
Mod+Shift+Page_Down { move-workspace-down; }
Mod+Shift+Page_Up { move-workspace-up; }
Mod+Shift+U { move-workspace-down; }
Mod+Shift+I { move-workspace-up; }
// You can bind mouse wheel scroll ticks using the following syntax.
// These binds will change direction based on the natural-scroll setting.
//
// To avoid scrolling through workspaces really fast, you can use
// the cooldown-ms property. The bind will be rate-limited to this value.
// You can set a cooldown on any bind, but it's most useful for the wheel.
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
Mod+WheelScrollRight { focus-column-right; }
Mod+WheelScrollLeft { focus-column-left; }
Mod+Ctrl+WheelScrollRight { move-column-right; }
Mod+Ctrl+WheelScrollLeft { move-column-left; }
// Usually scrolling up and down with Shift in applications results in
// horizontal scrolling; these binds replicate that.
Mod+Shift+WheelScrollDown { focus-column-right; }
Mod+Shift+WheelScrollUp { focus-column-left; }
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
// Similarly, you can bind touchpad scroll "ticks".
// Touchpad scrolling is continuous, so for these binds it is split into
// discrete intervals.
// These binds are also affected by touchpad's natural-scroll, so these
// example binds are "inverted", since we have natural-scroll enabled for
// touchpads by default.
// Mod+TouchpadScrollDown { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02+"; }
// Mod+TouchpadScrollUp { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02-"; }
// You can refer to workspaces by index. However, keep in mind that
// niri is a dynamic workspace system, so these commands are kind of
// "best effort". Trying to refer to a workspace index bigger than
// the current workspace count will instead refer to the bottommost
// (empty) workspace.
//
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
// will all refer to the 3rd workspace.
Mod+1 { focus-workspace 1; }
Mod+2 { focus-workspace 2; }
Mod+3 { focus-workspace 3; }
Mod+4 { focus-workspace 4; }
Mod+5 { focus-workspace 5; }
Mod+6 { focus-workspace 6; }
Mod+7 { focus-workspace 7; }
Mod+8 { focus-workspace 8; }
Mod+9 { focus-workspace 9; }
Mod+Ctrl+1 { move-column-to-workspace 1; }
Mod+Ctrl+2 { move-column-to-workspace 2; }
Mod+Ctrl+3 { move-column-to-workspace 3; }
Mod+Ctrl+4 { move-column-to-workspace 4; }
Mod+Ctrl+5 { move-column-to-workspace 5; }
Mod+Ctrl+6 { move-column-to-workspace 6; }
Mod+Ctrl+7 { move-column-to-workspace 7; }
Mod+Ctrl+8 { move-column-to-workspace 8; }
Mod+Ctrl+9 { move-column-to-workspace 9; }
// Alternatively, there are commands to move just a single window:
// Mod+Ctrl+1 { move-window-to-workspace 1; }
// Switches focus between the current and the previous workspace.
// Mod+Tab { focus-workspace-previous; }
// The following binds move the focused window in and out of a column.
// If the window is alone, they will consume it into the nearby column to the side.
// If the window is already in a column, they will expel it out.
Mod+BracketLeft { consume-or-expel-window-left; }
Mod+BracketRight { consume-or-expel-window-right; }
// Consume one window from the right to the bottom of the focused column.
Mod+Comma { consume-window-into-column; }
// Expel the bottom window from the focused column to the right.
Mod+Period { expel-window-from-column; }
Mod+R { switch-preset-column-width; }
Mod+Shift+R { switch-preset-window-height; }
Mod+Ctrl+R { reset-window-height; }
Mod+F { maximize-column; }
Mod+Ctrl+F { expand-column-to-available-width; }
Mod+Shift+F { fullscreen-window; }
Mod+C { center-column; }
// Finer width adjustments.
// This command can also:
// * set width in pixels: "1000"
// * adjust width in pixels: "-5" or "+5"
// * set width as a percentage of screen width: "25%"
// * adjust width as a percentage of screen width: "-10%" or "+10%"
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
// set-column-width "100" will make the column occupy 200 physical screen pixels.
Mod+Minus { set-column-width "-10%"; }
Mod+Equal { set-column-width "+10%"; }
// Finer height adjustments when in column with other windows.
Mod+Shift+Minus { set-window-height "-10%"; }
Mod+Shift+Equal { set-window-height "+10%"; }
// Move the focused window between the floating and the tiling layout.
Mod+V { toggle-window-floating; }
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
Mod+W { toggle-column-tabbed-display; }
// Actions to switch layouts.
// Note: if you uncomment these, make sure you do NOT have
// a matching layout switch hotkey configured in xkb options above.
// Having both at once on the same hotkey will break the switching,
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
// Mod+Space { switch-layout "next"; }
// Mod+Shift+Space { switch-layout "prev"; }
Print { screenshot; }
Ctrl+Print { screenshot-screen; }
Alt+Print { screenshot-window; }
// The quit action will show a confirmation dialog to avoid accidental exits.
Mod+Shift+E { quit; }
Ctrl+Alt+Delete { quit; }
// Powers off the monitors. To turn them back on, do any input like
// moving the mouse or pressing any other key.
Mod+Shift+P { power-off-monitors; }
}
cursor {
xcursor-theme "Simp1e-Gruvbox-Dark"
xcursor-size 24
}

View file

@ -0,0 +1,37 @@
from theme import load_theme
config.load_autoconfig()
everforest = {
"base00": "#2b3339",
"base01": "#323c41",
"base02": "#503946",
"base03": "#868d80",
"base04": "#d3c6aa",
"base05": "#d3c6aa",
"base06": "#e9e8d2",
"base07": "#fff9e8",
"base08": "#7fbbb3",
"base09": "#d699b6",
"base0A": "#83c092",
"base0B": "#dbbc7f",
"base0C": "#e69875",
"base0D": "#a7c080",
"base0E": "#e67e80",
"base0F": "#d699b6",
}
load_theme(c, everforest)
c.colors.webpage.preferred_color_scheme = "dark"
c.tabs.position = "top"
c.tabs.width = 32
c.fonts.default_size = "13pt"
c.fonts.default_family = "sans-serif"
c.tabs.padding = {
"bottom": 4,
"top": 4,
"left": 6,
"right": 6,
}
c.tabs.indicator.width = 0

View file

@ -0,0 +1,91 @@
def load_theme(c, palette):
c.colors.completion.fg = palette["base05"]
c.colors.completion.odd.bg = palette["base01"]
c.colors.completion.even.bg = palette["base00"]
c.colors.completion.category.fg = palette["base0A"]
c.colors.completion.category.bg = palette["base00"]
c.colors.completion.category.border.top = palette["base00"]
c.colors.completion.category.border.bottom = palette["base00"]
c.colors.completion.item.selected.fg = palette["base05"]
c.colors.completion.item.selected.bg = palette["base02"]
c.colors.completion.item.selected.border.top = palette["base02"]
c.colors.completion.item.selected.border.bottom = palette["base02"]
c.colors.completion.item.selected.match.fg = palette["base0B"]
c.colors.completion.match.fg = palette["base0B"]
c.colors.completion.scrollbar.fg = palette["base05"]
c.colors.completion.scrollbar.bg = palette["base00"]
c.colors.contextmenu.disabled.bg = palette["base01"]
c.colors.contextmenu.disabled.fg = palette["base04"]
c.colors.contextmenu.menu.bg = palette["base00"]
c.colors.contextmenu.menu.fg = palette["base05"]
c.colors.contextmenu.selected.bg = palette["base02"]
c.colors.contextmenu.selected.fg = palette["base05"]
c.colors.downloads.bar.bg = palette["base00"]
c.colors.downloads.start.fg = palette["base00"]
c.colors.downloads.start.bg = palette["base0D"]
c.colors.downloads.stop.fg = palette["base00"]
c.colors.downloads.stop.bg = palette["base0C"]
c.colors.downloads.error.fg = palette["base08"]
c.colors.hints.fg = palette["base00"]
c.colors.hints.bg = palette["base0A"]
c.colors.hints.match.fg = palette["base05"]
c.colors.keyhint.fg = palette["base05"]
c.colors.keyhint.suffix.fg = palette["base05"]
c.colors.keyhint.bg = palette["base00"]
c.colors.messages.error.fg = palette["base00"]
c.colors.messages.error.bg = palette["base08"]
c.colors.messages.error.border = palette["base08"]
c.colors.messages.warning.fg = palette["base00"]
c.colors.messages.warning.bg = palette["base0E"]
c.colors.messages.warning.border = palette["base0E"]
c.colors.messages.info.fg = palette["base05"]
c.colors.messages.info.bg = palette["base00"]
c.colors.messages.info.border = palette["base00"]
c.colors.prompts.fg = palette["base05"]
c.colors.prompts.border = palette["base00"]
c.colors.prompts.bg = palette["base00"]
c.colors.prompts.selected.bg = palette["base02"]
c.colors.prompts.selected.fg = palette["base05"]
c.colors.statusbar.normal.fg = palette["base0B"]
c.colors.statusbar.normal.bg = palette["base00"]
c.colors.statusbar.insert.fg = palette["base00"]
c.colors.statusbar.insert.bg = palette["base0D"]
c.colors.statusbar.passthrough.fg = palette["base00"]
c.colors.statusbar.passthrough.bg = palette["base0C"]
c.colors.statusbar.private.fg = palette["base00"]
c.colors.statusbar.private.bg = palette["base01"]
c.colors.statusbar.command.fg = palette["base05"]
c.colors.statusbar.command.bg = palette["base00"]
c.colors.statusbar.command.private.fg = palette["base05"]
c.colors.statusbar.command.private.bg = palette["base00"]
c.colors.statusbar.caret.fg = palette["base00"]
c.colors.statusbar.caret.bg = palette["base0E"]
c.colors.statusbar.caret.selection.fg = palette["base00"]
c.colors.statusbar.caret.selection.bg = palette["base0D"]
c.colors.statusbar.progress.bg = palette["base0D"]
c.colors.statusbar.url.fg = palette["base05"]
c.colors.statusbar.url.error.fg = palette["base08"]
c.colors.statusbar.url.hover.fg = palette["base05"]
c.colors.statusbar.url.success.http.fg = palette["base0C"]
c.colors.statusbar.url.success.https.fg = palette["base0B"]
c.colors.statusbar.url.warn.fg = palette["base0E"]
c.colors.tabs.bar.bg = palette["base00"]
c.colors.tabs.indicator.start = palette["base0D"]
c.colors.tabs.indicator.stop = palette["base0C"]
c.colors.tabs.indicator.error = palette["base08"]
c.colors.tabs.odd.fg = palette["base05"]
c.colors.tabs.odd.bg = palette["base01"]
c.colors.tabs.even.fg = palette["base05"]
c.colors.tabs.even.bg = palette["base00"]
c.colors.tabs.pinned.even.bg = palette["base0C"]
c.colors.tabs.pinned.even.fg = palette["base07"]
c.colors.tabs.pinned.odd.bg = palette["base0B"]
c.colors.tabs.pinned.odd.fg = palette["base07"]
c.colors.tabs.pinned.selected.even.bg = palette["base02"]
c.colors.tabs.pinned.selected.even.fg = palette["base05"]
c.colors.tabs.pinned.selected.odd.bg = palette["base02"]
c.colors.tabs.pinned.selected.odd.fg = palette["base05"]
c.colors.tabs.selected.odd.fg = palette["base05"]
c.colors.tabs.selected.odd.bg = palette["base02"]
c.colors.tabs.selected.even.fg = palette["base05"]
c.colors.tabs.selected.even.bg = palette["base02"]

View file

@ -0,0 +1,94 @@
#!/bin/sh
mod="Super"
riverctl spawn kanshi
riverctl spawn "swaybg -i $HOME/.local/share/wallpapers/07.jpg -m fill"
riverctl spawn "$HOME/.config/river/scripts/waybar.sh"
riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
riverctl map normal "$mod"+Shift Return spawn kitty
riverctl map normal "$mod" P spawn "rofi -show drun"
riverctl map normal "$mod" S spawn "flameshot gui"
riverctl map normal "$mod" Q close
riverctl map normal "$mod"+Shift E exit
riverctl map normal "$mod"+Shift C spawn "$HOME/.config/river/init"
riverctl map normal "$mod" J focus-view next
riverctl map normal "$mod" K focus-view previous
riverctl map normal "$mod"+Shift J swap next
riverctl map normal "$mod"+Shift K swap previous
riverctl map normal "$mod" Period focus-output next
riverctl map normal "$mod" Comma focus-output previous
riverctl map normal "$mod"+Shift Period send-to-output next
riverctl map normal "$mod"+Shift Comma send-to-output previous
riverctl map normal "$mod" Return zoom
riverctl map normal "$mod" H send-layout-cmd rivercarro "main-ratio -0.05"
riverctl map normal "$mod" L send-layout-cmd rivercarro "main-ratio +0.05"
riverctl map normal "$mod"+Shift H send-layout-cmd rivercarro "main-count +1"
riverctl map normal "$mod"+Shift L send-layout-cmd rivercarro "main-count -1"
riverctl map normal "$mod"+Alt H move left 100
riverctl map normal "$mod"+Alt J move down 100
riverctl map normal "$mod"+Alt K move up 100
riverctl map normal "$mod"+Alt L move right 100
riverctl map normal "$mod"+Alt+Control H snap left
riverctl map normal "$mod"+Alt+Control J snap down
riverctl map normal "$mod"+Alt+Control K snap up
riverctl map normal "$mod"+Alt+Control L snap right
riverctl map normal "$mod"+Alt+Shift H resize horizontal -100
riverctl map normal "$mod"+Alt+Shift J resize vertical 100
riverctl map normal "$mod"+Alt+Shift K resize vertical -100
riverctl map normal "$mod"+Alt+Shift L resize horizontal 100
riverctl map-pointer normal "$mod" BTN_LEFT move-view
riverctl map-pointer normal "$mod" BTN_RIGHT resize-view
riverctl map-pointer normal "$mod" BTN_MIDDLE toggle-float
for i in $(seq 1 9); do
tags=$((1 << (i - 1)))
riverctl map normal "$mod" "$i" set-focused-tags "$tags"
riverctl map normal "$mod"+Shift "$i" set-view-tags "$tags"
riverctl map normal "$mod"+Control "$i" toggle-focused-tags "$tags"
riverctl map normal "$mod"+Shift+Control "$i" toggle-view-tags "$tags"
done
all_tags=$(((1 << 32) - 1))
riverctl map normal "$mod" 0 set-focused-tags "$all_tags"
riverctl map normal "$mod"+Shift 0 set-view-tags "$all_tags"
riverctl map normal "$mod" Space toggle-float
riverctl map normal "$mod" F toggle-fullscreen
riverctl map normal "$mod" Up send-layout-cmd rivercarro "main-location top"
riverctl map normal "$mod" Right send-layout-cmd rivercarro "main-location right"
riverctl map normal "$mod" Down send-layout-cmd rivercarro "main-location bottom"
riverctl map normal "$mod" Left send-layout-cmd rivercarro "main-location left"
riverctl declare-mode passthrough
riverctl map normal "$mod" F11 enter-mode passthrough
riverctl map passthrough "$mod" F11 enter-mode normal
for mode in normal locked; do
riverctl map "$mode" None XF86Eject spawn 'eject -T'
riverctl map "$mode" None XF86AudioRaiseVolume spawn 'pamixer -i 5'
riverctl map "$mode" None XF86AudioLowerVolume spawn 'pamixer -d 5'
riverctl map "$mode" None XF86AudioMute spawn 'pamixer --toggle-mute'
riverctl map "$mode" None XF86AudioMedia spawn 'playerctl play-pause'
riverctl map "$mode" None XF86AudioPlay spawn 'playerctl play-pause'
riverctl map "$mode" None XF86AudioPrev spawn 'playerctl previous'
riverctl map "$mode" None XF86AudioNext spawn 'playerctl next'
riverctl map "$mode" None XF86MonBrightnessUp spawn 'brightnessctl set +5%'
riverctl map "$mode" None XF86MonBrightnessDown spawn 'brightnessctl set 5%-'
done
# hacky way of making everything have borders
riverctl rule-add ssd
riverctl background-color 0x00000000
riverctl border-color-focused 0xbe95ffff
riverctl border-color-unfocused 0x00000000
riverctl keyboard-layout -options compose:ralt us
riverctl set-repeat 50 300
riverctl xcursor-theme "Simp1e-Adw-Dark"
riverctl default-layout rivercarro
rivercarro -inner-gaps 8 -outer-gaps 10 -no-smart-gaps &

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
pid="$(pidof waybar)"
if [[ -z $pid ]]; then
exec waybar &
fi

View file

@ -0,0 +1,98 @@
configuration{
modi: "run,drun,window";
lines: 5;
font: "Iosevka 12";
show-icons: true;
icon-theme: "Paper Mono";
terminal: "st";
drun-display-format: "{icon} {name}";
location: 0;
disable-history: false;
hide-scrollbar: true;
display-drun: "  Apps ";
}
@theme "nord"
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}

View file

@ -0,0 +1,11 @@
* {
bg-col: #2D353B;
bg-col-light: #343F44;
border-col: #343F44;
selected-col: #343F44;
blue: #7FBBB3;
fg-col: #D3C6AA;
fg-col2: #D3C6AA;
grey: #7A8478;
width: 600;
}

View file

@ -0,0 +1,3 @@
:root {
--font: "Monospace";
}

View file

@ -0,0 +1,32 @@
{
"position": "top",
"height": 0,
"spacing": 16,
"modules-left": ["mpris"],
"modules-center": ["niri/workspaces"],
"modules-right": ["wireplumber", "clock"],
"mpris": {
"format": "{player_icon} {dynamic}",
"format-paused": "{status_icon} <i>{dynamic}</i>",
"interval": 1,
"dynamic-len": 52,
"player-icons": {
"default": "▶",
"mpv": "🎵",
},
"status-icons": {
"paused": "",
"paused": "⏸",
},
},
"clock": {
"format": " {:%H:%M}",
"tooltip-format": "{:%A, %B %d, %Y}",
},
"wireplumber": {
"format": "{icon} {volume}%",
"format-muted": "",
"on-click": "helvum",
"format-icons": ["", "", ""],
},
}

View file

@ -0,0 +1,53 @@
@define-color base00 #2b3339;
@define-color base01 #323c41;
@define-color base02 #503946;
@define-color base03 #868d80;
@define-color base04 #d3c6aa;
@define-color base05 #d3c6aa;
@define-color base06 #e9e8d2;
@define-color base07 #fff9e8;
@define-color base08 #7fbbb3;
@define-color base09 #d699b6;
@define-color base0A #83c092;
@define-color base0B #dbbc7f;
@define-color base0C #e69875;
@define-color base0D #a7c080;
@define-color base0E #e67e80;
@define-color base0F #d699b6;
* {
all: unset;
font-size: 15px;
color: @base06;
}
window#waybar {
background: @base00;
}
tooltip {
background: @base01;
}
.modules-left,
.modules-right {
background: @base01;
padding: 0px 8px;
}
.modules-center {
background: @base01;
}
#workspaces button {
padding: 6px 16px;
transition: 0.2s;
}
#workspaces button:hover {
padding: 6px 24px;
}
#workspaces button.focused {
background: @base02;
}

View file

@ -0,0 +1,60 @@
{
inputs,
pkgs,
config,
...
}: {
alqueva.users.artur = {
shell = config.alqueva.shells.nushell.package;
tmpfiles = {
".config/qutebrowser/config.py" = ./configs/qutebrowser/config.py;
".config/qutebrowser/theme" = ./configs/qutebrowser/theme;
".config/vesktop/themes/theme.user.css" = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/deathbeam/base16-discord/refs/heads/main/themes/base16-nord.theme.css";
hash = "sha256-LofqgsVl+XKisk/dmb/PpwuLEWdEgchIfIw4xZs6LQw=";
};
".config/vesktop/settings/quickCss.css" = ./configs/vesktop/quickCss.css;
".config/kanshi/" = ./configs/kanshi;
".config/dunst/" = ./configs/dunst;
".config/niri/" = ./configs/niri;
".config/rofi/" = ./configs/rofi;
".config/foot" = ./configs/foot;
".config/waybar/config.jsonc" = ./configs/waybar/config.jsonc;
".config/waybar/style.css" = ./configs/waybar/style.css;
};
packages = builtins.attrValues {
inherit
(pkgs)
eww
wget
vesktop-electron32
mpv
imv
amberol
fractal
nicotine-plus-libadwaita
nautilus
librewolf
playerctl
geary
qutebrowser
dunst
gh
rofi-wayland
foot
signal-desktop
dino
;
inherit (inputs.hetch.packages.${pkgs.system}) hetch;
inherit (inputs.gimp-nixpkgs.legacyPackages.${pkgs.system}) gimp;
};
groups = [
"wheel"
"video"
"audio"
"networkmanager"
"input"
"libvirtd"
];
};
}