Compare commits

...

38 Commits

Author SHA1 Message Date
3dd54609e4 169 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 11:57:30 +01:00
4a65e88516 168 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 11:55:29 +01:00
b1bb0467db 167 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 11:53:17 +01:00
1f8aaa83b5 166 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 11:48:14 +01:00
04583f5da8 165 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 11:28:51 +01:00
1cdf2dd7e5 164 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 11:26:44 +01:00
1fc0740314 163 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 11:24:59 +01:00
71f6c0d738 162 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 11:10:06 +01:00
73b795635c 161 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 10:55:16 +01:00
aef0c34412 159 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 10:22:04 +01:00
d8b4d086a9 158 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 10:17:59 +01:00
509955e420 157 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 10:16:43 +01:00
6742f2a4f8 156 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-10 10:15:35 +01:00
085ec0b0d0 155 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 23:49:44 +01:00
40e351737b 154 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 23:43:05 +01:00
173cb17a65 153 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 23:39:35 +01:00
b0e41708a4 152 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 23:31:18 +01:00
cde41060a4 151 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 23:09:10 +01:00
bd52208559 150 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 23:03:48 +01:00
9013976776 149 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 23:02:23 +01:00
b4e7f2dd5c 148 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 23:00:05 +01:00
f8a45439ae 147 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:59:28 +01:00
223bd8d63a 146 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:57:57 +01:00
a865e458f7 145 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:55:54 +01:00
78e613148a 144 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:55:11 +01:00
c416d2343b 143 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:54:17 +01:00
ea301be586 142 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:50:51 +01:00
4130b57cda 141 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:48:55 +01:00
1ed5ce9ecf 140 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:47:06 +01:00
6bc2a77708 139 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:42:59 +01:00
f7ede6e382 138 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:41:32 +01:00
2aa0285b5d 137 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:34:04 +01:00
62e8021652 136 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:31:46 +01:00
5b58cdbf20 135 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:21:34 +01:00
a698c6d1cb 134 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:20:06 +01:00
60bd18a459 133 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:18:00 +01:00
5a04e28041 132 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:15:30 +01:00
19115a9b67 131 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * 2024-03-09 22:05:29 +01:00
5 changed files with 325 additions and 71 deletions

View File

@ -60,6 +60,8 @@
gyroflow
libqalculate
sops
pwvucontrol
qpwgraph
];
home.sessionVariables = {

View File

@ -8,8 +8,8 @@
musicDirectory = "/home/max/Music/";
network.startWhenNeeded = true;
extraConfig = ''
restore_paused = yes
auto_update = yes
restore_paused "yes"
auto_update "yes"
'';
};
services.mpd-mpris.enable = true;

View File

@ -25,6 +25,26 @@
};
config = {
output = let
bgdir = "~/Documents/Blender/desktop background Informatiker";
bg1080 = bgdir + "/render 1080p new color.png";
bg1080vert = bgdir + "/render 1080p hochkant new.png";
bg4k = bgdir + "/render 4K new color.png";
in {
eDP-1 = {
bg = "'${bg1080}' fit";
};
HDMI-A-1 = {
bg = "'${bg4k}' fit";
};
DP-4 = {
bg = "'${bg1080}' fit";
};
DP-5 = {
bg = "'${bg1080vert}' fit";
};
};
input = {
"*" = {
xkb_layout = "de";
@ -35,12 +55,35 @@
tap = "enable";
natural_scroll = "enable";
};
# map laptop touchscreen to laptop display
"1267:11676:ELAN2513:00_04F3:2D9C" = {
map_to_output = "'AU Optronics 0x4B2D Unknown'";
};
# map laptop stylus to laptop display
"1267:11676:ELAN2513:00_04F3:2D9C_Stylus" = {
map_to_output = "'AU Optronics 0x4B2D Unknown'";
};
};
modifier = "Mod4";
keybindings = let
modifier = config.wayland.windowManager.sway.config.modifier;
in
lib.mkOptionDefault {
# special workspaces
"${modifier}+1" = "workspace main";
"${modifier}+2" = "workspace term";
"${modifier}+3" = "workspace msg";
"${modifier}+4" = "workspace music";
"${modifier}+Shift+1" = "move container to workspace main";
"${modifier}+Shift+2" = "move container to workspace term";
"${modifier}+Shift+3" = "move container to workspace msg";
"${modifier}+Shift+4" = "move container to workspace music";
# screen capture
"${modifier}+Print" = ''exec ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.wl-clipboard}/bin/wl-copy'';
"${modifier}+Shift+Print" = ''exec ${pkgs.wf-recorder}/bin/wf-recorder -g "$(${pkgs.slurp}/bin/slurp)" -f "$HOME/Videos/screencapture_$(${pkgs.coreutils}/bin/date +%F-%T).mp4"'';
# brightness
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5";
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5";
@ -52,18 +95,22 @@
# custom pause mode similar to typical system shutdown menus
"${modifier}+F12" = "mode pause-break";
};
menu = "${pkgs.tofi}/bin/tofi-drun | ${pkgs.findutils}/bin/xargs swaymsg exec --";
# use foot as default terminal
terminal = "foot";
assigns = {
"1" = [{app_id = "firefox";}];
"2" = [{app_id = "foot";}];
"main" = [{app_id = "firefox";}];
"term" = [{app_id = "foot-startup";}];
"msg" = [{title = "\\[Locked\\] - KeePassXC$";}];
};
bars = [];
menu = "${pkgs.tofi}/bin/tofi-drun | ${pkgs.findutils}/bin/xargs swaymsg exec --";
fonts = {
names = ["FiraCode Nerd Font"];
size = 11.0;
};
modes = {
pause-break = {
e = "exec --no-startup-id swaymsg exit, mode default";
@ -74,13 +121,87 @@
Escape = "mode default";
};
};
startup = [
{command = "dbus-sway-environment";}
{command = "configure-gtk";}
{command = "${pkgs.keepassxc}/bin/keepassxc";}
{command = "${pkgs.waybar}/bin/waybar";}
{command = "${pkgs.foot}/bin/foot";}
{command = "${pkgs.foot}/bin/foot -a foot-startup";}
];
defaultWorkspace = "main";
workspaceAutoBackAndForth = true;
workspaceOutputAssign = [
{
workspace = "main";
output = ["DP-4" "HDMI-A-1" "eDP-1"];
}
{
workspace = "term";
output = ["DP-5" "eDP-1"];
}
{
workspace = "msg";
output = ["eDP-1"];
}
{
workspace = "music";
output = ["eDP-1"];
}
{
workspace = "5";
output = ["DP-4" "HDMI-A-1" "eDP-1"];
}
];
colors = {
background = "#00000000";
focused = {
border = "#00FFEE";
background = "#4477AA";
text = "#F0F0F0";
childBorder = "#00FFEE";
indicator = "#00AA88";
};
focusedInactive = {
border = "#626262";
background = "#444444";
text = "#F0F0F0";
childBorder = "#626262";
indicator = "#00AA88";
};
placeholder = {
border = "#313131";
background = "#222222";
text = "#F0F0F0";
childBorder = "#313131";
indicator = "#005544";
};
unfocused = {
border = "#313131";
background = "#222222";
text = "#F0F0F0";
childBorder = "#313131";
indicator = "#00AA88";
};
urgent = {
border = "#FF3131";
background = "#882222";
text = "#F0F0F0";
childBorder = "#FF3131";
indicator = "#00AA88";
};
};
focus.mouseWarping = true;
gaps = {
inner = 5;
smartGaps = true;
smartBorders = "no_gaps";
};
window.titlebar = false;
};
};
@ -92,7 +213,56 @@
position = "top";
height = 26;
modules-left = ["sway/workspaces" "sway/mode"];
modules-right = ["sway/language" "clock" "battery"];
modules-center = ["sway/window"];
modules-right = ["mpd" "tray" "sway/language" "clock" "backlight" "battery" "network"];
"sway/workspaces" = {
disable-scroll = true;
all-outputs = false;
format = "<span size='150%'>{icon}</span> {name}";
format-icons = {
"main" = "󰈹";
"term" = "";
"msg" = "󰷹";
"music" = "󰫔";
"urgent" = "";
"focused" = "";
"default" = "";
};
};
"mpd" = {
format = "{stateIcon}{consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {title} ({elapsedTime:%M:%S}/{totalTime:%M%S}) {volume}";
format-stopped = "{stateIcon}{randomIcon}{repeatIcon}{singleIcon} Stopped {volume}";
format-disconnected = "";
unkown-tag = "N/A";
interval = 2;
consume-icons = {
on = "󰮯 ";
off = "";
};
random-icons = {
on = "󰒟 ";
off = "󰒞 ";
};
repeat-icons = {
on = "󰑖 ";
off = "󰑗 ";
};
single-icons = {
on = "󰑘 ";
off = "";
};
state-icons = {
paused = "󰏤 ";
playing = "󰐊 ";
};
max-length = 50;
};
"tray" = {
spacing = 10;
};
"sway/language" = {
format = "{shortDescription}";
@ -103,43 +273,26 @@
interval = 60;
format = "{:%a %d.%m %I:%M}";
};
"backlight" = {
format = "{percent}% {icon}";
format-icons = ["󰹐" "󱩎" "󱩏" "󱩐" "󱩑" "󱩒" "󱩓" "󱩔" "󱩕" "󱩖" "󰛨"];
};
"battery" = {
format = "{capacity}% {icon}";
format-icons = ["󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
};
"network" = {
format-wifi = "{essid} ({signalStrength}%) 󰖩";
format-ethernet = "{ipaddr}/{cidr} 󰈀";
tooltip-format = "{ifname} via {gwaddr} 󰌘";
format-disconnected = "󰌙";
};
};
};
style = ''
* {
border: none;
border-radius: 0;
padding: 0;
margin: 0;
font-size: 11px;
}
window#waybar {
background: #292828;
color: #ffffff;
}
#workspaces button {
margin-right: 10px;
color: #ffffff;
}
#workspaces button:hover, #workspaces button:active {
background-color: #292828;
color: #ffffff;
}
#workspaces button.focused {
background-color: #383737;
}
#language {
margin-right: 7px;
}
#battery {
margin-left: 7px;
margin-right: 3px;
}
'';
style = ./waybar.css;
};
services.kanshi = {
@ -151,33 +304,51 @@
position = "0,0";
}
];
dock_luhbots.outputs = [
{
criteria = "eDP-1";
position = "0,1080";
}
{
criteria = "Dell Inc. DELL U2422HE GRCPH83";
position = "0,0";
}
{
criteria = "NEC Corporation E243WMi 7X313185NB";
transform = "90";
position = "1920,0";
}
];
laptop_hannspree.outputs = [
{
criteria = "eDP-1";
position = "320,1440";
}
{
criteria = "HannStar Display Corp HC281UPB ";
position = "0,0";
mode = "3840x2160@60";
scale = 1.5;
}
];
dock_luhbots = {
outputs = [
{
criteria = "eDP-1";
position = "0,1080";
}
{
criteria = "Dell Inc. DELL U2422HE GRCPH83";
position = "0,0";
}
{
criteria = "NEC Corporation E243WMi 7X313185NB";
transform = "90";
position = "1920,0";
}
];
exec = [
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-4"
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-5"
"${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4"
];
};
laptop_hannspree = {
outputs = [
{
criteria = "eDP-1";
position = "320,1440";
}
{
criteria = "HannStar Display Corp HC281UPB ";
position = "0,0";
mode = "3840x2160@60";
scale = 1.5;
}
];
exec = [
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to HDMI-A-1"
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to HDMI-A-1"
];
};
};
};

View File

@ -0,0 +1,81 @@
* {
border: none;
border-radius: 0;
padding: 0;
margin: 0;
font-size: 11px;
font-family: "FiraCode Nerd Font";
}
window#waybar {
background: #292828;
color: #ffffff;
}
#workspaces button {
margin-right: 2px;
padding-left: 2px;
padding-right: 2px;
color: #ffffff;
}
#workspaces button:hover, #workspaces button:active {
background-color: #292828;
color: #ffffff;
}
#workspaces button.focused {
background-color: #383737;
color: #00ffee;
}
#mpd {
padding-left: 3px;
padding-right: 3px;
}
#tray {
border-width: 1px;
border-style: none none none solid;
border-color: #444444;
padding-left: 3px;
padding-right: 3px;
}
#language {
border-width: 1px;
border-style: none none none solid;
border-color: #444444;
padding-left: 3px;
padding-right: 3px;
}
#clock {
border-width: 1px;
border-style: none none none solid;
border-color: #444444;
padding-left: 3px;
padding-right: 3px;
}
#backlight {
border-width: 1px;
border-style: none none none solid;
border-color: #444444;
padding-left: 3px;
padding-right: 3px;
}
#battery {
border-width: 1px;
border-style: none none none solid;
border-color: #444444;
padding-left: 3px;
padding-right: 3px;
}
#network {
border-width: 1px;
border-style: none none none solid;
border-color: #444444;
padding-left: 3px;
padding-right: 3px;
}

View File

@ -11,7 +11,7 @@
set -e
# cd to your config dir
pushd ~/dotfiles/nixos/
pushd ~/dotfiles/nixos
# Edit your config
$EDITOR
@ -25,7 +25,7 @@
echo "NixOS Rebuilding..."
# Rebuild, output simplified errors, log trackebacks
${pkgs.sudo}/bin/sudo nixos-rebuild switch &>nixos-switch.log || (${pkgs.coreutils}/bin/cat nixos-switch.log | ${pkgs.gnugrep}/bin/grep --color error && false)
sudo nixos-rebuild switch &>nixos-switch.log || (${pkgs.coreutils}/bin/cat nixos-switch.log | ${pkgs.gnugrep}/bin/grep --color error && false)
# Get current generation metadata
current=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current)