stability aquired

This commit is contained in:
alisceon 2025-12-04 15:40:58 +01:00
parent 78c1bdeab5
commit c4971ee746
4 changed files with 50 additions and 43 deletions

View file

@ -8,7 +8,7 @@
notify = "${pkgs.libnotify}/bin/notify-send";
# keybinds
key_mod = "Mod4";
key_mod = "Alt";
key_left = "Left";
key_right = "Right";
key_up = "Up";
@ -159,22 +159,10 @@
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true; # Fixes common issues with GTK 3 apps
systemd = {
xdgAutostart = true;
variables = [
"--all"
];
};
extraSessionCommands = ''
export XDG_CURRENT_DESKTOP=GNOME:sway
'';
config = {
modifier = "${key_mod}";
startup = [
{ command = "systemctl --user start libinput-gestures"; }
#{ command = "firefox";}
#{ command = "discord";}
];
bars = [
{ command = "${pkgs.waybar}/bin/waybar"; }
@ -194,9 +182,11 @@
};
"type:mouse" = {
natural_scroll = "disabled";
accel_profile = "flat";
};
"*" = {
xkb_layout = "se";
xkb_layout = "us,se";
xkb_options = "grp:win_space_toggle";
};
}; # end input
keybindings = {
@ -259,12 +249,15 @@
"${key_mod}+Shift+${key_right}" = "move right";
# System
"Mod4+space" = ''exec ${notify} -t 2000 "$(xonsh ~/.nixos_config/util/get_xkb.xonsh)"'';
#Screenshot region
"${key_mod}+Shift+s" = "exec grimshot savecopy area";
"Print" = "exec grimshot savecopy output";
# media keys
"XF86AudioRaiseVolume" = "exec 'pactl set-sink-volume @DEFAULT_SINK@ +3%'";
"XF86AudioLowerVolume" = "exec 'pactl set-sink-volume @DEFAULT_SINK@ -3%'";
"XF86AudioMute" = "exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'";
"XF86AudioPlay" = "exec 'playerctl play-pause'";
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 10";
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 10";
}; # end keybindings
@ -324,21 +317,18 @@
mako = {
enable = true;
settings = {
"actionable=true" = {
anchor = "top-left";
};
actions = true;
anchor = "top-right";
anchor = "top-center";
background-color = color_f_bg;
border-color = color_f_bg;
border-radius = 0;
default-timeout = 0;
default-timeout = 10000;
font = "${style_font} ${style_font_sz}";
height = 100;
width = 300;
width = 600;
icons = true;
ignore-timeout = false;
layer = "top";
layer = "overlay";
margin = 10;
markup = true;
}; #end settings
@ -690,4 +680,8 @@
gesture pinch in 4 ${swaymsg} kill
gesture swipe up 4 ${lock}
'';
# this right here offends me https://source.chromium.org/chromium/chromium/src/+/main:base/nix/xdg_util.cc;l=179-180
systemd.user.sessionVariables = {
GNOME_DESKTOP_SESSION_ID = "999";
};
} # end file