big refactoring

This commit is contained in:
2025-05-07 20:35:17 +02:00
parent 23010ee036
commit 1f045cdf5c
92 changed files with 378 additions and 1324 deletions

View File

@@ -1,25 +0,0 @@
{ lib, stdenv, fetchgit, chez, which, emacs, texliveFull }:
stdenv.mkDerivation {
name = "minlog";
version = "2024-04-14";
src = fetchgit {
url = "http://www.ed.math.lmu.de/m/~minlogit/git/minlog.git";
rev = "92a3f38d4532942016525ebdfb05c0a0791cad97";
hash = "sha256-WWkYjf0vMf6zhSW9zr1hdV8D1W08l5Y0auMghMhFU68=";
};
nativeBuildInputs = [ chez which emacs texliveFull ];
buildInputs = [ chez ];
makeFlags = [ "DESTDIR=$(out)" ];
meta = with lib; {
description = "Minlog is an interactive proof system";
homepage = "https://www.ed.math.lmu.de/m//~logik/minlog/#installation";
maintainers = [ maintainers.einfischy ];
platforms = platforms.linux;
};
}

View File

@@ -16,7 +16,6 @@
# system tools
lm_sensors
arandr
pavucontrol
sshfs
@@ -32,7 +31,6 @@
stateVersion = "23.11";
};
systemd.user.services = {
idle-inhibitor = {
Unit = {
@@ -44,7 +42,7 @@
};
};
};
programs = { home-manager.enable = true; };
programs.home-manager.enable = true;
nixpkgs.config = {
allowUnfree = true;

View File

@@ -1,16 +0,0 @@
{ ... }:
{
login = builtins.fetchurl {
url =
"https://github.com/zhichaoh/catppuccin-wallpapers/blob/main/minimalistic/unicat.png?raw=true";
sha256 = "1pa0mlnzna96d0gkrc9yphg11vmjdxvk5vyj8h5jq4ngsm20p6cy";
};
lock = builtins.fetchurl {
url =
"https://github.com/zhichaoh/catppuccin-wallpapers/blob/main/landscapes/yosemite.png?raw=true";
sha256 = "0zyphcvh6dxbq997h716lcr2kpilp4jid9hp2sdjphpxpf824nck";
};
}

10
home/programs/3dprint.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
freecad
gnumake
openscad
prusa-slicer
];
}

View File

@@ -1,38 +0,0 @@
{ pkgs, config, ... }:
{
home.packages = with pkgs; [ autorandr ];
programs.autorandr = {
enable = true;
profiles = {
"desktop-dual" = {
fingerprint = {
"DVI-D-1" =
"00ffffffffffff0010ac9940423948442d18010380331d78eae595a656529d27105054a54b00714f8180a9c0d1c00101010101010101023a801871382d40582c4500fd1e1100001e000000ff004a384a3331344234444839420a000000fc0044454c4c205032333134480a20000000fd00384c1e5311000a202020202020007f";
"HDMI-2" =
"00ffffffffffff000469fa22010101012f17010380301b78ea3d25a35951a0250f5054bfef00714f818081409500a940b300d1c00101023a801871382d40582c4500dd0c1100001e000000fd00324c1e5311000a202020202020000000fc0056453232380a20202020202020000000ff0044424c4d51533037343531360a013402031ef14b900504030201111213141f230907078301000065030c0010001a3680a070381e4030203500dd0c1100001a662156aa51001e30468f3300dd0c1100001e011d007251d01e206e285500dd0c1100001e8c0ad08a20e02d10103e9600dd0c11000018011d8018711c1620582c2500dd0c1100009f0000000000000032";
};
config = {
"HDMI-2" = {
enable = true;
primary = true;
position = "1920x0";
mode = "1920x1080";
#gamma = "1.0:0.909:0.833";
#rate = "60.00";
};
"DVI-D-1" = {
enable = true;
primary = false;
position = "0x0";
mode = "1920x1080";
#gamma = "1.0:0.909:0.833";
#rate = "60.00";
};
};
};
};
};
}

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ betterlockscreen ];
}

View File

@@ -1,8 +1,6 @@
{
imports = [
./default.nix
#./audacity-desktop
#./autorandr/default-desktop.nix
./zathura/default-desktop.nix
./zathura-desktop.nix
];
}

View File

@@ -1 +1 @@
{ imports = [ ./default.nix ./zathura/default-laptop.nix ]; }
{ imports = [ ./default.nix ./zathura-laptop.nix ]; }

View File

@@ -1,43 +1,32 @@
{
imports = [
./hyprlock.nix
./river
./alacritty
./anki
./betterlockscreen
./calibre
./discord
./dolphin
./dunst
./element
./3dprint.nix
./alacritty.nix
./anki.nix
./calibre.nix
./dolphin.nix
./eww
./freecad
./git
./inkscape
./ktouch
./libreoffice
./git.nix
./hyprlock.nix
./inkscape.nix
./ktouch.nix
./libreoffice.nix
./messenger.nix
./neovim
./nextcloud
./obs
./openscad
./picard
./planify
./prismlauncher
./prusa-slicer
./nextcloud.nix
./picard.nix
./planify.nix
./prismlauncher.nix
./pulseaudio
./river
./rofi
./signal
./skanlite
./slack
./spotify
./stack
./telegram
./thunderbird
./vlc
./vscode
./wallpaper
./xmonad
./zoom
./zsh
./skanlite.nix
./spotify.nix
./swww
./thunderbird.nix
./vlc.nix
./vscode.nix
./zoom.nix
./zsh.nix
];
}

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ discord ];
}

View File

@@ -1,9 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ dunst ];
xdg.configFile."dunst/dunstrc" = {
recursive = true;
source = ./dunstrc;
};
}

View File

@@ -1,486 +0,0 @@
# 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 ###
# dynamic width from 0 to 300
# width = (0, 300)
# constant width of 300
width = 300
# The height of a single notification, excluding the frame.
height = (0, 300)
# Position the notification in the top right corner
origin = top-right
# Offset from the origin
offset = (10, 50)
# 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 = 2
# Padding between text and separator.
padding = 8
# Horizontal padding.
horizontal_padding = 8
# 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 = 3
# Defines color of the frame around the notification window.
frame_color = "#aaaaaa"
# 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 = 0
# 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 8
# 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 ###
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/xdg-open
# 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 = "#222222"
foreground = "#888888"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#default_icon = /path/to/icon
[urgency_normal]
background = "#285577"
foreground = "#ffffff"
timeout = 10
override_pause_level = 30
# Icon for notifications with normal urgency, uncomment to enable
#default_icon = /path/to/icon
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
frame_color = "#ff0000"
timeout = 0
override_pause_level = 60
# Icon for notifications with critical urgency, uncomment to enable
#default_icon = /path/to/icon
# 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

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ element-desktop ];
}

View File

@@ -1,92 +1,221 @@
;; /-- Variables -->
(defpoll windows
:interval "1s"
:initial "-"
`sh ~/.config/eww/scripts/xmonad_logs.sh`)
;; /-- Bar -->
(defpoll micClass
:interval "1s"
:initial "micOff"
`sh ~/.config/eww/scripts/mic_class.sh`)
(defwindow bar []
:geometry (geometry
:x "0px"
:y "0px"
:width "100%"
:height "25px"
:anchor "top center"
)
:reserve (struts
:distance "25px"
:side "top")
:exclusive true
:layer "top"
:windowtype "dock"
(box
:orientation "horizontal"
:space-evenly false
:class "bar"
;;(widgetWorkspaces)
;;(widgetLogSeperator)
;;(widgetLayouts)
;;(widgetLogSeperator)
;;(widgetWindows)
(box :hexpand true)
(idle_inhibitor)
(widSep)
(WidgetAudio)
(widSep)
(widgetBacklight)
(widSep)
(widgetCpu)
(widSep)
(widgetMemory)
(widSep)
(widgetBattery)
(widSep)
(widgetNetwork)
(widSep)
(widgetTime)
)
)
(defpoll micIcon
:interval "1s"
:initial "󰍭"
`sh ~/.config/eww/scripts/mic_icon.sh`)
;; /-- Widget Separator -->
(defpoll speakerClass
:interval "1s"
:initial "speakerOff"
`sh ~/.config/eww/scripts/speaker_class.sh`)
(defwidget widSep []
(label
:class "text separator"
:text "|"))
(defpoll speakerIcon
:interval "1s"
:initial ""
`sh ~/.config/eww/scripts/speaker_icon.sh`)
;; /-- Idle Inhibitor -->
(defpoll speakerVolume
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/speaker_volume.sh`)
(deflisten idle_inhibitor "journalctl --output=cat --output-fields=JOB_TYPE --user --follow --unit=idle-inhibitor")
(defpoll backlight
:interval "1s"
:initial "0"
`xbacklight -get`)
(defwidget idle_inhibitor []
(box
:space-evenly false
(button
:class "${idle_inhibitor == 'start' ? 'idleOn' : 'idleOff' }"
:onclick "systemctl --user is-active idle-inhibitor.service && systemctl --user stop idle-inhibitor.service || systemctl --user start idle-inhibitor.service"
(label :text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }"))))
(defpoll cpu
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/cpu.sh`)
;; /-- Audio -->
(defpoll memory
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/memory.sh`)
(defvar micClass "micOff")
(defvar micIcon "󰍭")
(defvar speakerClass "speakerOff")
(defvar speakerIcon "")
(defpoll speakerVolume
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/audio.sh`)
(defpoll batteryClass
:interval "1s"
:initial "speakerOff"
`sh ~/.config/eww/scripts/battery_class.sh`)
(defwidget WidgetAudio []
(box
:space-evenly false
(label
:class speakerClass
:text "${speakerIcon} ")
(label
:class "text"
:text "${speakerVolume}% ")
(label
:class micClass
:text "${micIcon}")))
(defpoll batteryIcon
:interval "1s"
:initial ""
`sh ~/.config/eww/scripts/battery_icon.sh`)
;; /-- Backlight -->
(defpoll batteryVolume
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/battery_volume.sh`)
(defpoll backlight
:interval "1s"
:initial "0"
`xbacklight -get`)
(defpoll networkDown
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/network_down.sh`)
(defwidget widgetBacklight []
(box
:space-evenly false
(label
:class "backlight"
:text " ")
(label
:class "text"
:text "${backlight}%")))
(defpoll networkUp
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/network_up.sh`)
;; /-- CPU -->
(defpoll date
:interval "1s"
:initial "-"
`date '+ %a %d.%m.%y %H:%M'`)
(defpoll cpu
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/cpu.sh`)
(defvar ws1 "ws-empty")
(defvar ws2 "ws-empty")
(defvar ws3 "ws-empty")
(defvar ws4 "ws-empty")
(defvar ws5 "ws-empty")
(defvar ws6 "ws-empty")
(defvar ws7 "ws-empty")
(defvar ws8 "ws-empty")
(defvar ws9 "ws-empty")
(defwidget widgetCpu []
(box
:space-evenly false
(label
:class "cpu"
:text " ")
(label
:class "text"
:text "${cpu}%")))
(defvar layouts "")
;; /-- Memory -->
(defpoll memory
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/memory.sh`)
(defwidget widgetMemory []
(box
:space-evenly false
(label
:class "memory"
:text " ")
(label
:class "text"
:text "${memory}%")))
;; /-- Battery -->
(defvar batteryClass "speakerOff")
(defvar batteryIcon "")
(defpoll batteryVolume
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/battery.sh`)
(defwidget widgetBattery []
(box
:space-evenly false
(label
:class batteryClass
:text "${batteryIcon} ")
(label
:class "text"
:text "${batteryVolume}%")))
;; /-- Network -->
(defvar networkDown "0")
(defpoll networkUp
:interval "1s"
:initial "0"
`sh ~/.config/eww/scripts/network.sh`)
(defwidget widgetNetwork []
(box
:space-evenly false
(label
:class "networkDown"
:text " ")
(label
:class "text"
:text "${networkDown} ")
(label
:class "networkUp"
:text " ")
(label
:class "text"
:text "${networkUp}")))
;; /-- Time -->
(defpoll date
:interval "1s"
:initial "-"
`date '+ %a %d.%m.%y %H:%M'`)
(defwidget widgetTime []
(box
:space-evenly false
(label
:class "time"
:text " ")
(label
:class "text"
:text "${date}")))
;; /-- XMonad Logs | Old -->
(defvar ws1 "ws-empty")
(defvar ws2 "ws-empty")
(defvar ws3 "ws-empty")
(defvar ws4 "ws-empty")
(defvar ws5 "ws-empty")
(defvar ws6 "ws-empty")
(defvar ws7 "ws-empty")
(defvar ws8 "ws-empty")
(defvar ws9 "ws-empty")
(defvar layouts "")
(defpoll windows
:interval "1s"
:initial "-"
`sh ~/.config/eww/scripts/xmonad_logs.sh`)
;; /-- Blocks -->
(defwidget widgetWorkspaces []
(box
:orientation "horizontal"
@@ -166,141 +295,5 @@
:class "text separator"
:text "⦁"))
(defwidget widgetSpeaker []
(box
:space-evenly false
(label
:class speakerClass
:text "${speakerIcon} ")
(label
:class "text"
:text "${speakerVolume}% ")
(label
:class micClass
:text "${micIcon}")))
(defwidget widgetBacklight []
(box
:space-evenly false
(label
:class "backlight"
:text " ")
(label
:class "text"
:text "${backlight}%")))
(defwidget widgetCpu []
(box
:space-evenly false
(label
:class "cpu"
:text " ")
(label
:class "text"
:text "${cpu}%")))
(defwidget widgetMemory []
(box
:space-evenly false
(label
:class "memory"
:text " ")
(label
:class "text"
:text "${memory}%")))
(defwidget widgetBattery []
(box
:space-evenly false
(label
:class batteryClass
:text "${batteryIcon} ")
(label
:class "text"
:text "${batteryVolume}%")))
(defwidget widgetNetworkDown []
(box
:space-evenly false
(label
:class "networkDown"
:text " ")
(label
:class "text"
:text "${networkDown}")))
(defwidget widgetNetworkUp []
(box
:space-evenly false
(label
:class "networkUp"
:text " ")
(label
:class "text"
:text "${networkUp}")))
(defwidget widgetTime []
(box
:space-evenly false
(label
:class "time"
:text " ")
(label
:class "text"
:text "${date}")))
(defwidget widgetSeperator []
(label
:class "text separator"
:text "|"))
(defwidget idle_inhibitor []
(box :class "idle_inhibitor"
:space-evenly false
(button :class "icon"
:onclick "systemctl --user is-active idle-inhibitor.service && systemctl --user stop idle-inhibitor.service || systemctl --user start idle-inhibitor.service"
(label :text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }"))))
;; /-- Bar -->
(defwindow bar []
:geometry (geometry
:x "0px"
:y "0px"
:width "100%"
:height "25px"
:anchor "top center"
)
:reserve (struts
:distance "25px"
:side "top")
:exclusive true
:layer "top"
:windowtype "dock"
(box
:orientation "horizontal"
:space-evenly false
:class "bar"
(widgetWorkspaces)
(widgetLogSeperator)
(widgetLayouts)
(widgetLogSeperator)
(widgetWindows)
(box :hexpand true)
(idle_inhibitor)
(widgetSpeaker)
(widgetSeperator)
(widgetBacklight)
(widgetSeperator)
(widgetCpu)
(widgetSeperator)
(widgetMemory)
(widgetSeperator)
(widgetBattery)
(widgetSeperator)
(widgetNetworkDown)
(widgetSeperator)
(widgetNetworkUp)
(widgetSeperator)
(widgetTime)
)
)

View File

@@ -1,5 +1,5 @@
// <-- Preamble -->
// <-- Colors -->
// /-- Preamble -->
// /-- Colors -->
$white-text: #f5e0dc;
$grey-text: #6c7086;
$grey-background: #1e1e2e;
@@ -10,38 +10,41 @@
$blue: #89b4fa;
$gold: #fab387;
$orange: #fab387;
// <-- Prepare all -->
// /-- Prepare all -->
* {all: unset;}
.text {color: $white-text;}
.separator {padding: 0px 4px;}
// <-- Bar -->
// <-- Widgets -->
// <-- Audio -->
// /-- Bar -->
// /-- Widgets -->
// /-- Idle Inhibtor -->
.idleOn {color: $green;}
.idleOff {color: $green;}
// /-- Audio -->
.micOn {color: $green;}
.micOff {color: $red;}
.speakerOn {color: $green;}
.speakerOff {color: $red;}
// <-- Backlight -->
// /-- Backlight -->
.backlight {color: $yellow;}
// <-- CPU & Memory -->
// /-- CPU & Memory -->
.cpu {color: $violet;}
.memory {color: $blue;}
// <-- Battery -->
// /-- Battery -->
.batteryFull {color: $gold;}
.batteryHalf {color: $green;}
.batteryEmpty {color: $red;}
.batteryCharging {color: $violet;}
.networkDown {color: $red;}
// <-- Network -->
// /-- Network -->
.networkUp {color: $blue;}
// <-- Workspaces -->
// /-- Workspaces -->
.workspace-button {background: $grey-background;}
.ws-current {color: $green;}
.ws-visible {color: $red;}
.ws-hidden {color: $white-text;}
.ws-empty {color: $grey-text;}
.time {color: $orange;}
// <-- Window -->
// /-- Window -->
.bar {
padding: 0.2em 1em;
background: $grey-background;
@@ -49,7 +52,7 @@
font-family: "Fira Code";
font-size: 12px;
}
// <-- Powermenu -->
// /-- Powermenu -->
.powermenu-button {
background-color: #313244;
color: $white-text;
@@ -58,7 +61,7 @@
border-radius: 6px;
font-size: 14px;
}
// <-- Window -->
// /-- Window -->
.powermenu {
background-color: $grey-background;
padding: 20px;

View File

@@ -9,7 +9,7 @@
(label
:text " ")
(button
:onclick "close eww power; ./scripts/blur-lock.sh"
:onclick "close eww power; /home/elias/.config/helperscripts/lock.sh"
:class "powermenu-button"
(label
:text ""))
@@ -23,7 +23,7 @@
(label
:text "")
(button
:onclick "close eww power; ./scripts/logout.sh"
:onclick "close eww power; /home/elias/.config/helperscripts/logout.sh"
:class "powermenu-button"
(label
:text ""))))

View File

@@ -0,0 +1,27 @@
mute=$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}')
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | awk '{print $5}' | tr -d '%')
# /-- Mic -->
if pactl get-source-mute @DEFAULT_SOURCE@ | grep -q "yes"; then
eww update micClass="micOff"
eww update micIcon="󰍭"
else
eww update micClass="micOn"
eww update micIcon="󰍬"
fi
# /-- Speaker -->
if [[ "$mute" == "yes" ]]; then
eww update speakerClass="speakerOff"
eww update speakerIcon=""
elif [[ "$volume" -le 100 ]]; then
eww update speakerClass="speakerOn"
eww update speakerIcon=""
else
eww update speakerClass="speakerOn"
eww update speakerIcon=""
fi
echo "$volume"

View File

@@ -0,0 +1,25 @@
bat=$(cat /sys/class/power_supply/BAT0/capacity)
stat=$(cat /sys/class/power_supply/AC/online)
if [ ! -d "/sys/class/power_supply/BAT0" ]; then
bat="100"
eww update batteryClass="batteryFull"
eww update batteryIcon=""
elif [[ $stat == 1 ]]; then
eww update batteryClass="batteryCharging"
eww update batteryIcon=""
elif [[ $bat -le 10 ]]; then
eww update batteryClass="batteryEmpty"
eww update batteryIcon=""
elif [[ $bat -le 50 ]]; then
eww update batteryClass="batteryHalf"
eww update batteryIcon=""
elif [[ $bat -le 80 ]]; then
eww update batteryClass="batteryHalf"
eww update batteryIcon=""
else
eww update batteryClass="batteryFull"
eww update batteryIcon=""
fi
echo "$bat"

View File

@@ -1,16 +0,0 @@
bat=$(cat /sys/class/power_supply/BAT0/capacity)
stat=$(cat /sys/class/power_supply/AC/online)
class="batteryFull"
if [ ! -d "/sys/class/power_supply/BAT0" ]; then
class="batteryFull"
elif [[ $stat == 1 ]]; then
class="batteryCharging"
elif [[ $bat -le 10 ]]; then
class="batteryEmpty"
elif [[ $bat -le 80 ]]; then
class="batteryHalf"
fi
echo "$class"

View File

@@ -1,18 +0,0 @@
bat=$(cat /sys/class/power_supply/BAT0/capacity)
stat=$(cat /sys/class/power_supply/AC/online)
icon=""
if [ ! -d "/sys/class/power_supply/BAT0" ]; then
icon=""
elif [[ $stat == 1 ]]; then
icon=""
elif [[ $bat -le 10 ]]; then
icon=""
elif [[ $bat -le 50 ]]; then
icon=""
elif [[ $bat -le 80 ]]; then
icon=""
fi
echo "$icon"

View File

@@ -1,7 +0,0 @@
bat=$(cat /sys/class/power_supply/BAT0/capacity)
if [ ! -d "/sys/class/power_supply/BAT0" ]; then
bat="100"
fi
echo "$bat"

View File

@@ -1,5 +1,4 @@
cpu_idle=$(top -bn1 | awk '/Cpu\(s\)/ {print $8}')
cpu_used=$(awk "BEGIN {print 100 - $cpu_idle}")
# Print only the numeric result
printf "%.0f\n" "$cpu_used"

View File

@@ -1,5 +0,0 @@
if pactl get-source-mute @DEFAULT_SOURCE@ | grep -q "yes"; then
echo "micOff"
else
echo "micOn"
fi

View File

@@ -1,5 +0,0 @@
if pactl get-source-mute @DEFAULT_SOURCE@ | grep -q "yes"; then
echo "󰍭" # muted
else
echo "󰍬" # unmuted
fi

View File

@@ -0,0 +1,16 @@
# You can change this if your interface is named differently (e.g., eth0, enp3s0)
INTERFACE=$(ip route get 1.1.1.1 | awk '{print $5; exit}')
# /-- Uprate -->
TX_PREV=$(cat /sys/class/net/"$INTERFACE"/statistics/tx_bytes)
sleep 1
TX_CUR=$(cat /sys/class/net/"$INTERFACE"/statistics/tx_bytes)
TX_RATE=$(((TX_CUR - TX_PREV) / 1024))
# /-- Downrate -->
RX_PREV=$(cat /sys/class/net/"$INTERFACE"/statistics/rx_bytes)
sleep 1
RX_CUR=$(cat /sys/class/net/"$INTERFACE"/statistics/rx_bytes)
eww update networkDown=$(((RX_CUR - RX_PREV) / 1024))
echo "${TX_RATE}"

View File

@@ -1,11 +0,0 @@
# You can change this if your interface is named differently (e.g., eth0, enp3s0)
INTERFACE=$(ip route get 1.1.1.1 | awk '{print $5; exit}')
RX_PREV=$(cat /sys/class/net/$INTERFACE/statistics/rx_bytes)
sleep 1
RX_CUR=$(cat /sys/class/net/$INTERFACE/statistics/rx_bytes)
# Calculate download/upload in KiB/s
RX_RATE=$(((RX_CUR - RX_PREV) / 1024))
# Output formatted for Eww
echo "${RX_RATE}"

View File

@@ -1,8 +0,0 @@
# You can change this if your interface is named differently (e.g., eth0, enp3s0)
INTERFACE=$(ip route get 1.1.1.1 | awk '{print $5; exit}')
TX_PREV=$(cat /sys/class/net/$INTERFACE/statistics/tx_bytes)
sleep 1
TX_CUR=$(cat /sys/class/net/$INTERFACE/statistics/tx_bytes)
TX_RATE=$(((TX_CUR - TX_PREV) / 1024))
echo "${TX_RATE}"

View File

@@ -1,8 +0,0 @@
mute=$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}')
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | awk '{print $5}' | tr -d '%')
if [[ "$mute" == "yes" ]]; then
echo "speakerOff" # muted icon
else
echo "speakerOn" # high volume
fi

View File

@@ -1,10 +0,0 @@
mute=$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}')
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | awk '{print $5}' | tr -d '%')
if [[ "$mute" == "yes" ]]; then
echo "" # muted icon
elif [[ "$volume" -le 100 ]]; then
echo "" # low volume
else
echo "" # high volume
fi

View File

@@ -1,4 +0,0 @@
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | awk '{print $5}' | tr -d '%')
half_volume=$((volume / 2))
echo "$half_volume"

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ freecad ];
}

View File

@@ -1 +0,0 @@
,elias,eliasDesktop,10.05.2024 20:03,file:///home/elias/.config/libreoffice/4;

View File

@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
discord
element-desktop
signal-desktop
slack
telegram-desktop
];
}

View File

@@ -33,6 +33,7 @@ in {
conform-nvim
conjure
comment-nvim
deferred-clipboard-nvim
dropbar-nvim
friendly-snippets
lazy-nvim

View File

@@ -1,5 +0,0 @@
{ ... }:
{
programs.obs-studio.enable = true;
}

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ gnumake openscad ];
}

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ prusa-slicer ];
}

View File

@@ -3,7 +3,8 @@
{
home.packages = with pkgs; [
wlr-randr
yad slurp
yad
slurp
grim
wl-clipboard
rivercarro
@@ -30,11 +31,9 @@
MOZ_ENABLE_WAYLAND = "1";
GDK_BACKEND = "wayland";
};
systemd = { enable = true; };
systemd.enable = true;
xwayland.enable = true;
extraConfig = ''
rivertile -view-padding 0 -outer-padding 0 &
'';
extraConfig = ''rivertile -view-padding 0 -outer-padding 0 &'';
settings = {
spawn = [
"nextcloud --background"
@@ -42,7 +41,6 @@
];
spawn-tagmask = "${all_but_scratch_tag}";
keyboard-layout = "de";
#keyboard-layout = "-options caps:swapescape 'us(colemak_dh)'";
default-layout = "rivertile";
rule-add = {
"-app-id" = {

View File

@@ -2,11 +2,8 @@ hostname=$(hostname)
if [[ "$hostname" == "eliasLaptop" ]]; then
eww open bar --screen eDP-1
# You can put other commands specific to this hostname
elif [[ "$hostname" == "eliasDesktop" ]]; then
echo "This is another PC!"
# Add commands for the second PC
else
echo "This is an unknown PC."
# Add commands for unknown hosts
fi

View File

@@ -4,7 +4,6 @@
home.packages = with pkgs; [
oranchelo-icon-theme
nerd-fonts.jetbrains-mono
xclip
];
xsession.initExtra = "setxkbmap de"; # rofi pass needs this to be set
@@ -31,7 +30,7 @@
enable = true;
extraConfig = ''
EDITOR='rofi-sensible-terminal -e vim'
clibpoard_backend=xclip
clibpoard_backend=wl-copy
clip=clipboard
'';
};

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ signal-desktop-bin ];
}

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ slack ];
}

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ stack ];
}

View File

Before

Width:  |  Height:  |  Size: 6.0 MiB

After

Width:  |  Height:  |  Size: 6.0 MiB

View File

@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
swww
];
xsession.initExtra = ''
swww-daemon
swww img "/etc/nixos/home/programs/wallpaper/background_temp.jpeg" fill
'';
}

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ telegram-desktop ];
}

View File

@@ -41,10 +41,6 @@
};
privat = {
address = "elias.schroeter@e.email";
#gpg = {
# key = "0x99D2EF975FE523CC";
# signByDefault = false;
#};
aliases = [ "elias.schroeter@murena.io" "xacufe67.cadome83@murena.io" ];
imap = {
host = "mail.ecloud.global";

View File

@@ -1,9 +0,0 @@
{ pkgs, ... }:
{
programs.feh = { enable = true; };
xsession.initExtra = ''
${pkgs.feh}/bin/feh --bg-fill --no-fehbg "/etc/nixos/home/programs/wallpaper/background_temp.jpeg"
'';
}

View File

@@ -1,25 +0,0 @@
{ pkgs, ... }:
{
xsession = {
enable = true;
windowManager = {
xmonad = {
enable = true;
enableContribAndExtras = true;
config = ./src/xmonad.hs;
};
};
};
home.packages = with pkgs; [
xmobar
maim
xdotool
xorg.xmessage
ghc
cabal-install
wmctrl
trayer
];
}

View File

@@ -1,31 +0,0 @@
# Created by https://www.toptal.com/developers/gitignore/api/haskell
# Edit at https://www.toptal.com/developers/gitignore?templates=haskell
### Haskell ###
dist
dist-*
cabal-dev
*.o
*.hi
*.hie
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
.hpc
.hsenv
.cabal-sandbox/
cabal.sandbox.config
*.prof
*.aux
*.hp
*.eventlog
.stack-work/
cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*
# End of https://www.toptal.com/developers/gitignore/api/haskell

View File

@@ -1,12 +0,0 @@
with (import <nixpkgs> { });
mkShell {
buildInputs = [
stack
cabal-install
haskell-language-server
(haskellPackages.ghcWithPackages
(hpkgs: with hpkgs; [ xmobar xmonad xmonad-contrib ]))
];
shellHook = "zsh";
}

View File

@@ -1,104 +0,0 @@
import Data.ByteString (maximum)
import Distribution.Compat.Prelude (print)
import System.IO
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.StatusBar
import XMonad.Hooks.StatusBar.PP
import XMonad.Layout.Magnifier
import XMonad.Layout.ThreeColumns
import XMonad.Util.ClickableWorkspaces
import XMonad.Util.EZConfig
import XMonad.Util.Loggers
import XMonad.Util.Run (spawnPipe)
import XMonad.Util.SpawnOnce (spawnOnce)
-- import Control.Monad.RWS (All(All))
import XMonad.Hooks.ManageHelpers
main = do
xmonad . docks . ewmhFullscreen . ewmh $ myConfig
myConfig =
def
{ modMask = mod4Mask
, terminal = "alacritty"
, layoutHook = avoidStruts myLayout
, normalBorderColor = "#f5c2e7"
, focusedBorderColor = "#cdd6f4"
, manageHook = manageDocks <+> myManageHooks
, startupHook = myStartupHook
, logHook = dynamicLogWithPP myXmobarPP
}
`additionalKeysP` myKeys
myKeys =
[ -- Messages
("M-m w", spawn "xmessage 'Test Message :)'") -- type mod+x then w to pop up 'woohoo!')
-- System
, ("M-p", spawn "rofi -show \"drun\"")
, -- Screenshots
("<Print>", spawn "maim --format=png \"/home/$USER/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S).png\"") -- Whole Screen to File
, ("M-<Print>", spawn "maim --format=png --window $(xdotool getactivewindow) \"/home/$USER/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S).png\"") -- Focused Window to File
, ("S-<Print>", spawn "maim --format=png --select \"/home/$USER/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S).png\"") -- Selection to File
, ("C-<Print>", spawn "maim --format=png | xclip -selection clipboard -t image/png") -- Whole Screen to Clipboard
, ("M-C-<Print>", spawn "maim --format=png --window $(xdotool getactivewindow) | xclip -section clipboard -t image/png") -- Focused Window to Clipboard
, ("C-S-<Print>", spawn "maim --format=png --select | xclip -selection clipboard -t image/png") -- Selection to Clipboard
-- Program
, ("M-c", spawn "firefox")
, ("M-y", spawn "signal-desktop")
, ("M-x", spawn "telegram-desktop")
, ("M-v", spawn "thunderbird")
, -- Brightness
("<XF86MonBrightnessUp>", spawn "xbacklight -inc 10")
, ("<XF86MonBrightnessDown>", spawn "xbacklight -dec 10")
, -- Audio
("<XF86AudioMute>", spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle")
, ("<XF86AudioRaiseVolume>", spawn "pactl set-sink-volume @DEFAULT_SINK@ +10%")
, ("<XF86AudioLowerVolume>", spawn "pactl set-sink-volume @DEFAULT_SINK@ -10%")
, ("<XF86AudioMicMute>", spawn "pactl set-source-mute @DEFAULT_SOURCE@ toggle")
, -- Powerbutton
("<XF86PowerOff>", spawn "/home/$USER/.config/eww/scripts/powermenu.sh")
]
-- `removeKeysP` [ "M-S-q" ]
myXmobarPP :: PP
myXmobarPP =
def
{ ppOutput = \str -> do
writeFile "/tmp/xmonad-eww-log" str
, ppCurrent = wrap "[" "]"
, ppVisible = wrap "(" ")"
, ppHidden = wrap "{" "}"
, ppHiddenNoWindows = id
, ppUrgent = wrap "!" "!"
, ppSep = "|"
, ppOrder = \(ws : layout : _ : wins : _) -> [ws, layout, wins]
, ppExtras = [logTitles formatFocused formatUnfocused]
}
where
formatFocused = wrap "(" ")" . ppWindow
formatUnfocused = wrap "[" "]" . ppWindow
ppWindow :: String -> String
ppWindow w = if null w then "???" else take 30 w
myLayout = Tall 1 (3 / 100) (1 / 2) ||| Mirror (Tall 1 (3 / 100) (1 / 2)) ||| Full ||| ThreeColMid 1 (3 / 100) (1 / 2) -- wenn wieder zoom von fokusierten Seitenfenstern gewünscht, dann Fireox fixn und: magnifiercz' 1.3 (ThreeColMid 1 (3/100) (1/2))
myManageHooks :: ManageHook
myManageHooks =
composeAll
[ isDialog --> doFloat
, className =? "Xmessage" --> doCenterFloat
]
myStartupHook :: X ()
myStartupHook = do
spawnOnce "nextcloud --background"
spawnOnce "trayer --edge top --align left --widthtype request --height 25 --transparent true --alpha 0 --expand true --SetDockType true --SetPartialStrut true"
spawnOnce "eww open bar"
spawnOnce "xss-lock -- ~/.config/eww/scripts/blur-lock.sh &"
spawnOnce "xset s 600 600 && xset +dpms && xset dpms 600 900 1200"

View File

@@ -1,9 +0,0 @@
{ ... }:
{
services.betterlockscreen = {
enable = true;
arguments = [ "blur" ];
inactiveInterval = 30;
};
}

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
imports = [ ./default.nix ./betterlockscreen ];
}

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ ... }:
{
imports = [ ./ssh-agent ./gpg-agent ./hypridle.nix ];

View File

@@ -1,19 +1,9 @@
{ pkgs, ... }:
# See https://github.com/nix-community/home-manager/issues/3095
let
pinentryRofi = pkgs.writeShellApplication {
name = "pinentry-rofi-with-env";
text = ''
PATH="$PATH:${pkgs.coreutils}/bin:${pkgs.rofi}/bin"
"${pkgs.pinentry-rofi}/bin/pinentry-rofi" "$@"
'';
};
in {
{
home.packages = with pkgs; [ pinentry-rofi pinentry-gnome3 ];
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-gnome3;
@@ -23,7 +13,6 @@ in {
extraConfig = ''
ttyname $GPG_TTY
'';
};
}

View File

@@ -1,22 +1,20 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
services.hypridle = {
enable = true;
settings = {
general = {
lock_cmd =
"/run/current-system/sw/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
lock_cmd = "/run/current-system/sw/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
before_sleep_cmd = "/run/current-system/sw/bin/loginctl lock-session";
};
listener = [
{
timeout = 300;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 600;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
}
];
listener = [{
timeout = 300;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
}{
timeout = 600;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
}];
};
};
}

View File

@@ -4,8 +4,10 @@
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
jack.enable = true;
};

View File

@@ -0,0 +1,6 @@
{ ... }:
{
services.ssh-agent.enable = true;
}

View File

@@ -1,6 +0,0 @@
{ ... }:
{
services.ssh-agent = { enable = true; };
}

View File

@@ -1,38 +0,0 @@
INFO: latexindent.pl version 3.24.4, 2024-07-18, a script to indent .tex files
latexindent.pl lives here: /nix/store/n170p0fiily4lcr7agswvzm84fyzi2jx-latexindent-3.24.4-tex/scripts/latexindent/
Sun Apr 20 15:34:29 2025
Reading input from STDIN
INFO: Processing switches:
-y|--yaml: YAML settings specified via command line
INFO: Directory for backup files and log file indent.log:
.
INFO: Perl modules are being loaded from the following directories:
/nix/store/3vq9qasxlqpyq1k95nq3s13g2m6w59ay-perl-5.40.0/lib/perl5/5.40.0/FindBin.pm
/nix/store/zi73jrv7iqlrwg6sk8fjbfafqs7jjj1z-perl-5.40.0-env/lib/perl5/site_perl/5.40.0/YAML/Tiny.pm
/nix/store/3vq9qasxlqpyq1k95nq3s13g2m6w59ay-perl-5.40.0/lib/perl5/5.40.0/File/Copy.pm
/nix/store/3vq9qasxlqpyq1k95nq3s13g2m6w59ay-perl-5.40.0/lib/perl5/5.40.0/File/Basename.pm
/nix/store/3vq9qasxlqpyq1k95nq3s13g2m6w59ay-perl-5.40.0/lib/perl5/5.40.0/Getopt/Long.pm
/nix/store/zi73jrv7iqlrwg6sk8fjbfafqs7jjj1z-perl-5.40.0-env/lib/perl5/site_perl/5.40.0/File/HomeDir.pm
INFO: LatexIndent perl modules are being loaded from, for example:
/nix/store/n170p0fiily4lcr7agswvzm84fyzi2jx-latexindent-3.24.4-tex/scripts/latexindent/LatexIndent/Document.pm
INFO: YAML settings read: defaultSettings.yaml
Reading defaultSettings.yaml from /nix/store/n170p0fiily4lcr7agswvzm84fyzi2jx-latexindent-3.24.4-tex/scripts/latexindent/defaultSettings.yaml
INFO: YAML reading settings
Home directory is /home/elias
latexindent.pl didn't find indentconfig.yaml or .indentconfig.yaml
see all possible locations: https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#indentconfig-options)
INFO: YAML settings read: -y switch
YAML setting: "defaultIndent:' '"
quote found in -y switch
key:
value: defaultIndent:' '
double-quoted string found in -y switch: "defaultIndent:' '", substitute to defaultIndent:' '
INFO: Phase 1: searching for objects
INFO: Phase 2: finding surrounding indentation
INFO: Phase 3: indenting objects
INFO: Phase 4: final indentation check
INFO: Output routine:
Not outputting to file; see -w and -o switches for more options.
--------------
INFO: Please direct all communication/issues to:
https://github.com/cmhughes/latexindent.pl

View File

@@ -1,10 +1,8 @@
{ pkgs, ... }:
{
# Import general Configs
imports = [ ./../hardware-configuration-desktop.nix ./../configuration.nix ];
imports = [ ./hardware-configuration-desktop.nix ./../configuration.nix ];
# Hostname
networking.hostName = "eliasDesktop";
services.blueman.enable = true;
hardware.bluetooth.enable = true;

View File

@@ -1,10 +1,8 @@
{ pkgs, ... }:
{
# Import general Configs
imports = [ ./../hardware-configuration-laptop.nix ./../configuration.nix ];
imports = [ ./hardware-configuration-laptop.nix ./../configuration.nix ];
# Hostname
networking.hostName = "eliasLaptop";
services.blueman.enable = true;
hardware.bluetooth.enable = true;

View File

@@ -1 +0,0 @@
final: prev: { minlog = prev.callPackage ./../builds/minlog.nix { }; }

View File

@@ -1,10 +0,0 @@
final: prev: {
obsidian = prev.obsidian.overrideAttrs (old: {
src = prev.fetchurl {
url = old.src.url;
hash = "sha256-XVq0nQiyT2HvKQpzJIvhghsGgg4ye7uqZcyA1nH4O/o=";
};
});
}

View File

@@ -1,31 +0,0 @@
self: super:
{
river-status = super.rustPlatform.buildRustPackage rec {
pname = "river-status";
version = "0.1.0"; # Replace with the actual version if known
src = super.fetchFromGitHub {
owner = "grvn";
repo = "river-status";
rev = "main"; # Replace with a specific commit hash or tag if needed
sha256 = "sha256-QTHn3+8CRpm5CoTwuhoMjBG16CYcOb79cOXgcgzimkc="; # Placeholder
};
cargoHash = "sha256-DPsQE71sEpfVnyI6V/da5n9V9pbItPZMuu/EM/30Jyo="; # Placeholder
nativeBuildInputs = [
super.pkg-config # If you're dealing with C libraries or dependencies
];
buildInputs = [
super.wayland-utils # Add this or other dependencies if they are required for building
];
meta = with super.lib; {
description = "A client for fetching status information from the River Wayland compositor";
homepage = "https://github.com/grvn/river-status";
license = licenses.mit;
maintainers = with maintainers; [ "Elias Schröter" ];
};
};
}

View File

@@ -1,5 +0,0 @@
{ pkgs ? import <nixpkgs> { overlays = [ (import ./river-status.nix) ]; } }:
pkgs.mkShell {
buildInputs = [ pkgs.river-status ];
}