Compare commits
No commits in common. "3dd54609e4c90b75fba37f6ca28aa839ae26541a" and "63422ffe6d4a85f8f691dd6aee8111e0c7e6ba11" have entirely different histories.
3dd54609e4
...
63422ffe6d
@ -60,8 +60,6 @@
|
|||||||
gyroflow
|
gyroflow
|
||||||
libqalculate
|
libqalculate
|
||||||
sops
|
sops
|
||||||
pwvucontrol
|
|
||||||
qpwgraph
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
musicDirectory = "/home/max/Music/";
|
musicDirectory = "/home/max/Music/";
|
||||||
network.startWhenNeeded = true;
|
network.startWhenNeeded = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
restore_paused "yes"
|
restore_paused = yes
|
||||||
auto_update "yes"
|
auto_update = yes
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
services.mpd-mpris.enable = true;
|
services.mpd-mpris.enable = true;
|
||||||
|
@ -25,26 +25,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
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 = {
|
input = {
|
||||||
"*" = {
|
"*" = {
|
||||||
xkb_layout = "de";
|
xkb_layout = "de";
|
||||||
@ -55,35 +35,12 @@
|
|||||||
tap = "enable";
|
tap = "enable";
|
||||||
natural_scroll = "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";
|
modifier = "Mod4";
|
||||||
keybindings = let
|
keybindings = let
|
||||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||||
in
|
in
|
||||||
lib.mkOptionDefault {
|
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
|
# brightness
|
||||||
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5";
|
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5";
|
||||||
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5";
|
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5";
|
||||||
@ -95,22 +52,18 @@
|
|||||||
# custom pause mode similar to typical system shutdown menus
|
# custom pause mode similar to typical system shutdown menus
|
||||||
"${modifier}+F12" = "mode pause-break";
|
"${modifier}+F12" = "mode pause-break";
|
||||||
};
|
};
|
||||||
menu = "${pkgs.tofi}/bin/tofi-drun | ${pkgs.findutils}/bin/xargs swaymsg exec --";
|
|
||||||
|
|
||||||
# use foot as default terminal
|
# use foot as default terminal
|
||||||
terminal = "foot";
|
terminal = "foot";
|
||||||
assigns = {
|
assigns = {
|
||||||
"main" = [{app_id = "firefox";}];
|
"1" = [{app_id = "firefox";}];
|
||||||
"term" = [{app_id = "foot-startup";}];
|
"2" = [{app_id = "foot";}];
|
||||||
"msg" = [{title = "\\[Locked\\] - KeePassXC$";}];
|
|
||||||
};
|
};
|
||||||
bars = [];
|
bars = [];
|
||||||
|
menu = "${pkgs.tofi}/bin/tofi-drun | ${pkgs.findutils}/bin/xargs swaymsg exec --";
|
||||||
fonts = {
|
fonts = {
|
||||||
names = ["FiraCode Nerd Font"];
|
names = ["FiraCode Nerd Font"];
|
||||||
size = 11.0;
|
size = 11.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
modes = {
|
modes = {
|
||||||
pause-break = {
|
pause-break = {
|
||||||
e = "exec --no-startup-id swaymsg exit, mode default";
|
e = "exec --no-startup-id swaymsg exit, mode default";
|
||||||
@ -121,87 +74,13 @@
|
|||||||
Escape = "mode default";
|
Escape = "mode default";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
startup = [
|
startup = [
|
||||||
{command = "dbus-sway-environment";}
|
{command = "dbus-sway-environment";}
|
||||||
{command = "configure-gtk";}
|
{command = "configure-gtk";}
|
||||||
{command = "${pkgs.keepassxc}/bin/keepassxc";}
|
{command = "${pkgs.keepassxc}/bin/keepassxc";}
|
||||||
{command = "${pkgs.waybar}/bin/waybar";}
|
{command = "${pkgs.waybar}/bin/waybar";}
|
||||||
{command = "${pkgs.foot}/bin/foot -a foot-startup";}
|
{command = "${pkgs.foot}/bin/foot";}
|
||||||
];
|
];
|
||||||
|
|
||||||
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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -213,56 +92,7 @@
|
|||||||
position = "top";
|
position = "top";
|
||||||
height = 26;
|
height = 26;
|
||||||
modules-left = ["sway/workspaces" "sway/mode"];
|
modules-left = ["sway/workspaces" "sway/mode"];
|
||||||
modules-center = ["sway/window"];
|
modules-right = ["sway/language" "clock" "battery"];
|
||||||
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" = {
|
"sway/language" = {
|
||||||
format = "{shortDescription}";
|
format = "{shortDescription}";
|
||||||
@ -273,26 +103,43 @@
|
|||||||
interval = 60;
|
interval = 60;
|
||||||
format = "{:%a %d.%m %I:%M}";
|
format = "{:%a %d.%m %I:%M}";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
style = ''
|
||||||
|
* {
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
"backlight" = {
|
window#waybar {
|
||||||
format = "{percent}% {icon}";
|
background: #292828;
|
||||||
format-icons = ["" "" "" "" "" "" "" "" "" "" ""];
|
color: #ffffff;
|
||||||
};
|
}
|
||||||
|
|
||||||
"battery" = {
|
#workspaces button {
|
||||||
format = "{capacity}% {icon}";
|
margin-right: 10px;
|
||||||
format-icons = ["" "" "" "" "" "" "" "" "" "" ""];
|
color: #ffffff;
|
||||||
};
|
}
|
||||||
|
#workspaces button:hover, #workspaces button:active {
|
||||||
|
background-color: #292828;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
#workspaces button.focused {
|
||||||
|
background-color: #383737;
|
||||||
|
}
|
||||||
|
|
||||||
"network" = {
|
#language {
|
||||||
format-wifi = "{essid} ({signalStrength}%) ";
|
margin-right: 7px;
|
||||||
format-ethernet = "{ipaddr}/{cidr} ";
|
}
|
||||||
tooltip-format = "{ifname} via {gwaddr} ";
|
|
||||||
format-disconnected = "";
|
#battery {
|
||||||
};
|
margin-left: 7px;
|
||||||
};
|
margin-right: 3px;
|
||||||
};
|
}
|
||||||
style = ./waybar.css;
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.kanshi = {
|
services.kanshi = {
|
||||||
@ -304,8 +151,7 @@
|
|||||||
position = "0,0";
|
position = "0,0";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
dock_luhbots = {
|
dock_luhbots.outputs = [
|
||||||
outputs = [
|
|
||||||
{
|
{
|
||||||
criteria = "eDP-1";
|
criteria = "eDP-1";
|
||||||
position = "0,1080";
|
position = "0,1080";
|
||||||
@ -320,16 +166,7 @@
|
|||||||
position = "1920,0";
|
position = "1920,0";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
exec = [
|
laptop_hannspree.outputs = [
|
||||||
"${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";
|
criteria = "eDP-1";
|
||||||
position = "320,1440";
|
position = "320,1440";
|
||||||
@ -341,14 +178,6 @@
|
|||||||
scale = 1.5;
|
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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,81 +0,0 @@
|
|||||||
* {
|
|
||||||
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;
|
|
||||||
}
|
|
@ -11,7 +11,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# cd to your config dir
|
# cd to your config dir
|
||||||
pushd ~/dotfiles/nixos
|
pushd ~/dotfiles/nixos/
|
||||||
|
|
||||||
# Edit your config
|
# Edit your config
|
||||||
$EDITOR
|
$EDITOR
|
||||||
@ -25,7 +25,7 @@
|
|||||||
echo "NixOS Rebuilding..."
|
echo "NixOS Rebuilding..."
|
||||||
|
|
||||||
# Rebuild, output simplified errors, log trackebacks
|
# Rebuild, output simplified errors, log trackebacks
|
||||||
sudo nixos-rebuild switch &>nixos-switch.log || (${pkgs.coreutils}/bin/cat nixos-switch.log | ${pkgs.gnugrep}/bin/grep --color error && false)
|
${pkgs.sudo}/bin/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
|
# Get current generation metadata
|
||||||
current=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current)
|
current=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user