2024-03-06 23:02:59 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2024-03-13 10:59:13 +01:00
|
|
|
}: let
|
|
|
|
schema = "org.gnome.desktop.a11y.applications";
|
|
|
|
key = "screen-keyboard-enabled";
|
|
|
|
squeekboard_toggle = pkgs.writeTextFile {
|
|
|
|
name = "squeekboard_toggle";
|
2024-03-13 11:01:27 +01:00
|
|
|
destination = "/bin/squeekboard_toggle";
|
2024-03-13 10:59:13 +01:00
|
|
|
executable = true;
|
|
|
|
text = ''
|
2024-03-13 11:15:54 +01:00
|
|
|
#!${pkgs.bash}/bin/bash
|
2024-03-13 11:20:00 +01:00
|
|
|
if [ "$(gsettings get ${schema} ${key})" == "true" ]; then
|
2024-03-13 10:59:13 +01:00
|
|
|
gsettings set ${schema} ${key} false
|
|
|
|
else
|
|
|
|
gsettings set ${schema} ${key} true
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
squeekboard_format = pkgs.writeTextFile {
|
|
|
|
name = "squeekboard_format";
|
2024-03-13 11:04:12 +01:00
|
|
|
destination = "/bin/squeekboard_format";
|
2024-03-13 10:59:13 +01:00
|
|
|
executable = true;
|
|
|
|
text = ''
|
2024-03-13 11:15:54 +01:00
|
|
|
#!${pkgs.bash}/bin/bash
|
2024-03-13 11:20:00 +01:00
|
|
|
if [ "$(gsettings get ${schema} ${key})" == "true" ]; then
|
2024-03-13 11:32:44 +01:00
|
|
|
echo '{ "text": "", "tooltip": "enabled", "percentage": 100 }'
|
2024-03-13 11:33:43 +01:00
|
|
|
else
|
|
|
|
echo '{ "text": "", "tooltip": "disabled", "percentage": 0 }'
|
2024-03-13 10:59:13 +01:00
|
|
|
fi
|
|
|
|
'';
|
|
|
|
};
|
2024-03-13 20:45:40 +01:00
|
|
|
rotate_lisgd = pkgs.writeTextFile {
|
|
|
|
name = "rotate_lisgd";
|
|
|
|
destination = "/bin/rotate_lisgd";
|
|
|
|
executable = true;
|
|
|
|
text = ''
|
|
|
|
#!${pkgs.bash}/bin/bash
|
|
|
|
|
|
|
|
# PREV_ORIENTATION and ORIENTATION are given by rot8
|
|
|
|
|
2024-03-13 21:16:46 +01:00
|
|
|
LISGD_INPUT=/dev/input/by-path/platform-AMDI0010:02-event
|
2024-03-13 20:45:40 +01:00
|
|
|
# open nwggrid (Meta+D) by swiping up from the bottom edge
|
2024-03-13 21:16:46 +01:00
|
|
|
LISGD_ACTIONS=("1,DU,B,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 32:1 32:0 125:0")
|
2024-03-13 20:45:40 +01:00
|
|
|
# close window (Meta+Shift+Q) by swiping down with 3 fingers
|
2024-03-13 21:16:46 +01:00
|
|
|
LISGD_ACTIONS+=("3,UD,*,L,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 16:1 16:0 42:0 125:0")
|
2024-03-13 20:45:40 +01:00
|
|
|
|
|
|
|
# move window left (Meta+Shift+H) by swiping left with 2 fingers
|
2024-03-13 21:16:46 +01:00
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 35:1 35:0 42:0 125:0")
|
2024-03-13 20:45:40 +01:00
|
|
|
# move window down (Meta+Shift+J) by swiping down with 2 fingers
|
2024-03-13 21:16:46 +01:00
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 36:1 36:0 42:0 125:0")
|
2024-03-13 20:45:40 +01:00
|
|
|
# move window up (Meta+Shift+K) by swiping up with 2 fingers
|
2024-03-13 21:16:46 +01:00
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 37:1 37:0 42:0 125:0")
|
2024-03-13 20:45:40 +01:00
|
|
|
# move window right (Meta+Shift+L) by swiping right with 2 fingers
|
2024-03-13 21:16:46 +01:00
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 38:1 38:0 42:0 125:0")
|
2024-03-13 20:45:40 +01:00
|
|
|
|
2024-03-13 21:16:46 +01:00
|
|
|
LISGD_ACTION_OPTIONS=()
|
|
|
|
for str in "$\{LISGD_ACTIONS[@]}"; do
|
|
|
|
LISGD_ACTION_OPTIONS+=("-g" "$str")
|
|
|
|
done
|
2024-03-13 20:45:40 +01:00
|
|
|
|
2024-03-13 21:16:46 +01:00
|
|
|
${pkgs.killall}/bin/killall lisgd
|
2024-03-13 20:45:40 +01:00
|
|
|
|
2024-03-13 21:16:46 +01:00
|
|
|
${pkgs.lisgd}/bin/lisgd -v -d "$LISGD_INPUT" "$\{LISGD_ACTION_OPTIONS[@]}"
|
2024-03-13 20:45:40 +01:00
|
|
|
'';
|
|
|
|
};
|
2024-03-13 10:59:13 +01:00
|
|
|
in {
|
2024-03-06 23:02:59 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
waybar # status bar
|
|
|
|
swaylock # screen locking
|
|
|
|
swayidle # automatic screen locking after system idle time
|
|
|
|
kanshi # hotswap displays
|
|
|
|
foot # terminal
|
|
|
|
keepassxc # used for secrets instead of gnome-keyring
|
|
|
|
];
|
|
|
|
|
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
systemd = {
|
|
|
|
enable = true;
|
2024-03-07 11:56:28 +01:00
|
|
|
xdgAutostart = false;
|
2024-03-06 23:02:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
wrapperFeatures = {
|
|
|
|
gtk = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
2024-03-10 10:15:35 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
2024-03-10 10:55:16 +01:00
|
|
|
|
2024-03-06 23:02:59 +01:00
|
|
|
input = {
|
|
|
|
"*" = {
|
|
|
|
xkb_layout = "de";
|
|
|
|
xkb_options = "caps:ctrl_modifier";
|
|
|
|
xkb_numlock = "enable";
|
|
|
|
};
|
|
|
|
"type:touchpad" = {
|
|
|
|
tap = "enable";
|
|
|
|
natural_scroll = "enable";
|
|
|
|
};
|
2024-03-10 10:15:35 +01:00
|
|
|
# map laptop touchscreen to laptop display
|
|
|
|
"1267:11676:ELAN2513:00_04F3:2D9C" = {
|
2024-03-10 10:16:43 +01:00
|
|
|
map_to_output = "'AU Optronics 0x4B2D Unknown'";
|
2024-03-10 10:15:35 +01:00
|
|
|
};
|
|
|
|
# map laptop stylus to laptop display
|
|
|
|
"1267:11676:ELAN2513:00_04F3:2D9C_Stylus" = {
|
2024-03-10 10:16:43 +01:00
|
|
|
map_to_output = "'AU Optronics 0x4B2D Unknown'";
|
2024-03-10 10:15:35 +01:00
|
|
|
};
|
2024-03-06 23:02:59 +01:00
|
|
|
};
|
2024-03-10 10:55:16 +01:00
|
|
|
|
2024-03-06 23:02:59 +01:00
|
|
|
modifier = "Mod4";
|
|
|
|
keybindings = let
|
|
|
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
|
|
|
in
|
|
|
|
lib.mkOptionDefault {
|
2024-03-09 23:31:18 +01:00
|
|
|
# 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";
|
|
|
|
|
2024-03-10 10:15:35 +01:00
|
|
|
# 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"'';
|
|
|
|
|
2024-03-06 23:02:59 +01:00
|
|
|
# brightness
|
|
|
|
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5";
|
|
|
|
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5";
|
|
|
|
# volume
|
|
|
|
"XF86AudioRaiseVolume" = "exec '${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +1%'";
|
|
|
|
"XF86AudioLowerVolume" = "exec '${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -1%'";
|
|
|
|
"XF86AudioMute" = "exec '${pkgs.pulseaudio}/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle'";
|
|
|
|
|
|
|
|
# custom pause mode similar to typical system shutdown menus
|
|
|
|
"${modifier}+F12" = "mode pause-break";
|
|
|
|
};
|
2024-03-13 18:20:23 +01:00
|
|
|
menu = "${pkgs.nwg-launchers}/bin/nwggrid -client";
|
2024-03-10 10:55:16 +01:00
|
|
|
|
2024-03-06 23:02:59 +01:00
|
|
|
# use foot as default terminal
|
|
|
|
terminal = "foot";
|
|
|
|
assigns = {
|
2024-03-09 23:31:18 +01:00
|
|
|
"main" = [{app_id = "firefox";}];
|
|
|
|
"term" = [{app_id = "foot-startup";}];
|
2024-03-10 11:57:30 +01:00
|
|
|
"msg" = [{title = "\\[Locked\\] - KeePassXC$";}];
|
2024-03-06 23:02:59 +01:00
|
|
|
};
|
|
|
|
bars = [];
|
2024-03-10 10:55:16 +01:00
|
|
|
|
2024-03-06 23:02:59 +01:00
|
|
|
fonts = {
|
|
|
|
names = ["FiraCode Nerd Font"];
|
|
|
|
size = 11.0;
|
|
|
|
};
|
2024-03-10 10:55:16 +01:00
|
|
|
|
2024-03-06 23:02:59 +01:00
|
|
|
modes = {
|
|
|
|
pause-break = {
|
|
|
|
e = "exec --no-startup-id swaymsg exit, mode default";
|
|
|
|
s = "exec --no-startup-id ${pkgs.dash}/bin/dash -c '${pkgs.swaylock}/bin/swaylock & systemctl suspend-then-hibernate', mode default";
|
|
|
|
r = "exec --no-startup-id systemctl reboot";
|
|
|
|
End = "exec --no-startup-id systemctl poweroff";
|
|
|
|
Return = "mode default";
|
|
|
|
Escape = "mode default";
|
|
|
|
};
|
|
|
|
};
|
2024-03-10 10:55:16 +01:00
|
|
|
|
2024-03-06 23:02:59 +01:00
|
|
|
startup = [
|
2024-03-07 00:14:16 +01:00
|
|
|
{command = "dbus-sway-environment";}
|
|
|
|
{command = "configure-gtk";}
|
2024-03-13 10:23:22 +01:00
|
|
|
{command = "${pkgs.squeekboard}/bin/squeekboard";}
|
2024-03-13 20:45:40 +01:00
|
|
|
{command = "${pkgs.rot8}/bin/rot8 -n 10 -h ${rotate_lisgd}/bin/rotate_lisgd";}
|
|
|
|
{command = "${rotate_lisgd}/bin/rotate_lisgd";}
|
2024-03-13 18:20:23 +01:00
|
|
|
{command = "${pkgs.nwg-launchers}/bin/nwggrid-server -fp";}
|
2024-03-06 23:02:59 +01:00
|
|
|
{command = "${pkgs.keepassxc}/bin/keepassxc";}
|
|
|
|
{command = "${pkgs.waybar}/bin/waybar";}
|
2024-03-09 23:31:18 +01:00
|
|
|
{command = "${pkgs.foot}/bin/foot -a foot-startup";}
|
|
|
|
];
|
2024-03-10 10:55:16 +01:00
|
|
|
|
2024-03-09 23:31:18 +01:00
|
|
|
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"];
|
|
|
|
}
|
|
|
|
{
|
2024-03-09 23:43:05 +01:00
|
|
|
workspace = "5";
|
2024-03-09 23:31:18 +01:00
|
|
|
output = ["DP-4" "HDMI-A-1" "eDP-1"];
|
|
|
|
}
|
2024-03-06 23:02:59 +01:00
|
|
|
];
|
2024-03-10 10:55:16 +01:00
|
|
|
|
|
|
|
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;
|
2024-03-06 23:02:59 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
mainBar = {
|
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
|
|
|
height = 26;
|
|
|
|
modules-left = ["sway/workspaces" "sway/mode"];
|
2024-03-09 22:05:29 +01:00
|
|
|
modules-center = ["sway/window"];
|
2024-03-13 10:47:09 +01:00
|
|
|
modules-right = ["mpd" "tray" "custom/squeekboard" "sway/language" "clock" "backlight" "battery" "network"];
|
2024-03-09 22:05:29 +01:00
|
|
|
|
|
|
|
"sway/workspaces" = {
|
|
|
|
disable-scroll = true;
|
|
|
|
all-outputs = false;
|
2024-03-09 22:20:06 +01:00
|
|
|
format = "<span size='150%'>{icon}</span> {name}";
|
2024-03-09 22:05:29 +01:00
|
|
|
format-icons = {
|
|
|
|
"main" = "";
|
|
|
|
"term" = "";
|
|
|
|
"msg" = "";
|
|
|
|
"music" = "";
|
|
|
|
"urgent" = "";
|
|
|
|
"focused" = "";
|
|
|
|
"default" = "";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"mpd" = {
|
2024-03-13 10:47:09 +01:00
|
|
|
format = "{stateIcon}{consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) {volume}";
|
2024-03-09 22:47:06 +01:00
|
|
|
format-stopped = "{stateIcon}{randomIcon}{repeatIcon}{singleIcon} Stopped {volume}";
|
2024-03-09 22:05:29 +01:00
|
|
|
format-disconnected = "";
|
|
|
|
unkown-tag = "N/A";
|
|
|
|
interval = 2;
|
|
|
|
consume-icons = {
|
2024-03-09 22:42:59 +01:00
|
|
|
on = " ";
|
2024-03-09 22:05:29 +01:00
|
|
|
off = "";
|
|
|
|
};
|
|
|
|
random-icons = {
|
2024-03-09 22:47:06 +01:00
|
|
|
on = " ";
|
|
|
|
off = " ";
|
2024-03-09 22:05:29 +01:00
|
|
|
};
|
|
|
|
repeat-icons = {
|
2024-03-09 22:42:59 +01:00
|
|
|
on = " ";
|
2024-03-09 22:47:06 +01:00
|
|
|
off = " ";
|
2024-03-09 22:05:29 +01:00
|
|
|
};
|
|
|
|
single-icons = {
|
2024-03-09 22:42:59 +01:00
|
|
|
on = " ";
|
2024-03-09 22:05:29 +01:00
|
|
|
off = "";
|
|
|
|
};
|
|
|
|
state-icons = {
|
2024-03-09 22:50:51 +01:00
|
|
|
paused = " ";
|
|
|
|
playing = " ";
|
2024-03-09 22:05:29 +01:00
|
|
|
};
|
|
|
|
max-length = 50;
|
|
|
|
};
|
|
|
|
|
|
|
|
"tray" = {
|
|
|
|
spacing = 10;
|
|
|
|
};
|
2024-03-06 23:02:59 +01:00
|
|
|
|
2024-03-13 11:14:05 +01:00
|
|
|
"custom/squeekboard" = {
|
2024-03-13 10:59:13 +01:00
|
|
|
format = "{}";
|
2024-03-13 11:14:05 +01:00
|
|
|
exec = "${squeekboard_format}/bin/squeekboard_format";
|
2024-03-13 11:30:01 +01:00
|
|
|
return-type = "json";
|
2024-03-13 10:59:13 +01:00
|
|
|
exec-on-event = true;
|
2024-03-13 11:33:43 +01:00
|
|
|
interval = 2;
|
2024-03-13 11:14:05 +01:00
|
|
|
on-click = "${squeekboard_toggle}/bin/squeekboard_toggle";
|
2024-03-13 10:47:09 +01:00
|
|
|
};
|
|
|
|
|
2024-03-06 23:02:59 +01:00
|
|
|
"sway/language" = {
|
|
|
|
format = "{shortDescription}";
|
|
|
|
tooltip = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
"clock" = {
|
|
|
|
interval = 60;
|
|
|
|
format = "{:%a %d.%m %I:%M}";
|
|
|
|
};
|
2024-03-09 22:05:29 +01:00
|
|
|
|
|
|
|
"backlight" = {
|
|
|
|
format = "{percent}% {icon}";
|
|
|
|
format-icons = ["" "" "" "" "" "" "" "" "" "" ""];
|
|
|
|
};
|
|
|
|
|
2024-03-09 22:41:32 +01:00
|
|
|
"battery" = {
|
|
|
|
format = "{capacity}% {icon}";
|
|
|
|
format-icons = ["" "" "" "" "" "" "" "" "" "" ""];
|
|
|
|
};
|
|
|
|
|
2024-03-09 22:05:29 +01:00
|
|
|
"network" = {
|
|
|
|
format-wifi = "{essid} ({signalStrength}%) ";
|
|
|
|
format-ethernet = "{ipaddr}/{cidr} ";
|
|
|
|
tooltip-format = "{ifname} via {gwaddr} ";
|
|
|
|
format-disconnected = "";
|
|
|
|
};
|
2024-03-06 23:02:59 +01:00
|
|
|
};
|
|
|
|
};
|
2024-03-09 23:09:10 +01:00
|
|
|
style = ./waybar.css;
|
2024-03-06 23:02:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
services.kanshi = {
|
|
|
|
enable = true;
|
|
|
|
profiles = {
|
|
|
|
laptop.outputs = [
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
position = "0,0";
|
|
|
|
}
|
|
|
|
];
|
2024-03-09 23:39:35 +01:00
|
|
|
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"
|
2024-03-11 13:52:19 +01:00
|
|
|
"${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"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
dock_luhbots2 = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
position = "1080,1080";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "Dell Inc. DELL U2422HE 8YCPH83";
|
|
|
|
position = "1080,0";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "NEC Corporation E243WMi 59118576NB";
|
|
|
|
transform = "90";
|
|
|
|
position = "0,0";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
exec = [
|
|
|
|
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-4"
|
|
|
|
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-5"
|
2024-03-09 23:39:35 +01:00
|
|
|
"${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"
|
|
|
|
];
|
|
|
|
};
|
2024-03-06 23:02:59 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Theming
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
cursorTheme = {
|
|
|
|
package = pkgs.capitaine-cursors;
|
|
|
|
name = "capitaine-cursors-white";
|
|
|
|
size = 24;
|
|
|
|
};
|
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.whitesur-icon-theme;
|
|
|
|
name = "WhiteSur-dark";
|
|
|
|
};
|
|
|
|
theme = {
|
|
|
|
package = pkgs.whitesur-gtk-theme;
|
|
|
|
name = "WhiteSur-Dark";
|
|
|
|
};
|
|
|
|
gtk3.extraConfig = {
|
|
|
|
gtk-dialogs-use-header = false;
|
|
|
|
gtk-cursor-theme-size = 0;
|
|
|
|
gtk-toolbar-style = "GTK_TOOLBAR_BOTH_HORIZ";
|
|
|
|
gtk-toolbar-icon-style = "GTK_ICON_SIZE_LARGE_TOOLBAR";
|
|
|
|
gtk-button-images = 0;
|
|
|
|
gtk-menu-images = 0;
|
|
|
|
gtk-enable-event-sounds = 0;
|
|
|
|
gtk-enable-input-feedback-sounds = 1;
|
|
|
|
gtk-xft-antialias = 1;
|
|
|
|
gtk-xft-hinting = 1;
|
|
|
|
gtk-xft-hintstyle = "hintslight";
|
|
|
|
gtk-xft-rgba = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
home.pointerCursor = {
|
|
|
|
package = pkgs.capitaine-cursors;
|
|
|
|
name = "capitaine-cursors-white";
|
|
|
|
size = 24;
|
|
|
|
x11.enable = true;
|
|
|
|
x11.defaultCursor = "capitaine-cursors-white";
|
|
|
|
};
|
|
|
|
xsession.enable = true;
|
2024-03-09 11:40:01 +01:00
|
|
|
|
|
|
|
home.file."tofi" = {
|
|
|
|
enable = true;
|
|
|
|
target = ".config/tofi/config";
|
|
|
|
text = ''
|
|
|
|
# fullscreen theming
|
|
|
|
width = 100%
|
|
|
|
height = 100%
|
|
|
|
border-width = 0
|
|
|
|
outline-width = 0
|
|
|
|
padding-top = 32
|
|
|
|
result-spacing = 25
|
|
|
|
font = FiraCode Nerd Font
|
|
|
|
background-color = #000D
|
|
|
|
text-color = #00FFEE
|
|
|
|
selection-color = #EEFF00
|
|
|
|
hint-font = false
|
|
|
|
|
|
|
|
# search behavior
|
|
|
|
history = true
|
|
|
|
fuzzy-match = true
|
|
|
|
'';
|
|
|
|
};
|
2024-03-09 20:39:39 +01:00
|
|
|
|
|
|
|
services.mako = {
|
|
|
|
enable = true;
|
2024-03-09 20:55:23 +01:00
|
|
|
actions = true;
|
|
|
|
anchor = "top-right";
|
|
|
|
|
|
|
|
backgroundColor = "#313131";
|
|
|
|
borderColor = "#00FFEE";
|
|
|
|
progressColor = "#338833";
|
|
|
|
textColor = "#e0e0e0";
|
|
|
|
extraConfig = ''
|
|
|
|
[urgency=low]
|
|
|
|
border-color=#008877
|
|
|
|
'';
|
|
|
|
|
|
|
|
borderRadius = 10;
|
2024-03-09 20:39:39 +01:00
|
|
|
borderSize = 2;
|
2024-03-09 20:55:23 +01:00
|
|
|
height = 100;
|
|
|
|
width = 400;
|
|
|
|
|
|
|
|
defaultTimeout = 10000; # ms
|
|
|
|
font = "FiraCode Nerd Font 11";
|
|
|
|
icons = true;
|
|
|
|
markup = true;
|
2024-03-09 20:39:39 +01:00
|
|
|
};
|
2024-03-06 23:02:59 +01:00
|
|
|
}
|