Lots of fixy business
This commit is contained in:
@@ -2,21 +2,9 @@
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
hostname,
|
||||
...
|
||||
}: let
|
||||
closer = pkgs.writeShellApplication {
|
||||
name = "closer";
|
||||
|
||||
runtimeInputs = with pkgs; [jq xdotool];
|
||||
|
||||
text = ''
|
||||
if [ "$(hyprctl activewindow -j | jq -r ".class")" = "Steam" ]; then
|
||||
xdotool getactivewindow windowunmap
|
||||
else
|
||||
sway killactive ""
|
||||
fi
|
||||
'';
|
||||
};
|
||||
mod = "Mod4";
|
||||
hyper = "Control+Shift+Mod1";
|
||||
in {
|
||||
@@ -30,63 +18,10 @@ in {
|
||||
};
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
extraOptions = [
|
||||
"--unsupported-gpu"
|
||||
];
|
||||
checkConfig = false;
|
||||
extraSessionCommands = ''
|
||||
export WLR_RENDERER=vulkan
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
export XWAYLAND_NO_GLAMOR=1
|
||||
export LIBVA_DRIVER_NAME=nvidia
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export GBM_BACKEND=nvidia-drm
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
'';
|
||||
config = {
|
||||
bars = [
|
||||
{
|
||||
mode = "dock";
|
||||
hiddenState = "hide";
|
||||
position = "bottom";
|
||||
workspaceButtons = true;
|
||||
workspaceNumbers = true;
|
||||
statusCommand = "${pkgs.i3status}/bin/i3status";
|
||||
fonts = {
|
||||
names = ["monospace"];
|
||||
size = 12.0;
|
||||
};
|
||||
trayOutput = "primary";
|
||||
colors = {
|
||||
background = "#000000";
|
||||
statusline = "#ffffff";
|
||||
separator = "#666666";
|
||||
focusedWorkspace = {
|
||||
border = "#4c7899";
|
||||
background = "#285577";
|
||||
text = "#ffffff";
|
||||
};
|
||||
activeWorkspace = {
|
||||
border = "#333333";
|
||||
background = "#5f676a";
|
||||
text = "#ffffff";
|
||||
};
|
||||
inactiveWorkspace = {
|
||||
border = "#333333";
|
||||
background = "#222222";
|
||||
text = "#888888";
|
||||
};
|
||||
urgentWorkspace = {
|
||||
border = "#2f343a";
|
||||
background = "#900000";
|
||||
text = "#ffffff";
|
||||
};
|
||||
bindingMode = {
|
||||
border = "#2f343a";
|
||||
background = "#900000";
|
||||
text = "#ffffff";
|
||||
};
|
||||
};
|
||||
command = "waybar";
|
||||
}
|
||||
];
|
||||
input = {
|
||||
@@ -94,7 +29,11 @@ in {
|
||||
xkb_layout = "gb";
|
||||
xkb_options = "caps:escape";
|
||||
tap = "enabled";
|
||||
natural_scroll = "enabled";
|
||||
natural_scroll = if hostname == "sidon" then "disabled" else "enabled";
|
||||
};
|
||||
"type:pointer" = {
|
||||
accel_profile = "flat";
|
||||
pointer_accel = "-0.2";
|
||||
};
|
||||
};
|
||||
output = {
|
||||
@@ -102,20 +41,20 @@ in {
|
||||
scale = "1.33";
|
||||
};
|
||||
|
||||
DP-2 = {
|
||||
DP-3 = {
|
||||
position = "0 0";
|
||||
scale = "1.33";
|
||||
};
|
||||
HDMI-A-2 = {
|
||||
HDMI-A-1 = {
|
||||
scale = "1.33";
|
||||
};
|
||||
};
|
||||
keybindings = {
|
||||
"${mod}+Return" = "exec kitty";
|
||||
"${mod}+q" = "${closer}/bin/closer";
|
||||
"${mod}+q" = "kill";
|
||||
"${mod}+d" = "exec tofi-drun --drun-launch=true";
|
||||
"${hyper}+Return" = "exec kitty";
|
||||
"${hyper}+q" = "${closer}/bin/closer";
|
||||
"${hyper}+q" = "kill";
|
||||
"${hyper}+d" = "exec tofi-drun --drun-launch=true";
|
||||
|
||||
"${mod}+h" = "focus left";
|
||||
@@ -123,17 +62,33 @@ in {
|
||||
"${mod}+k" = "focus up";
|
||||
"${mod}+l" = "focus right";
|
||||
|
||||
"${hyper}+h" = "focus left";
|
||||
"${hyper}+j" = "focus down";
|
||||
"${hyper}+k" = "focus up";
|
||||
"${hyper}+l" = "focus right";
|
||||
|
||||
"${mod}+Left" = "movewindow left";
|
||||
"${mod}+Up" = "movewindow up";
|
||||
"${mod}+Down" = "movewindow down";
|
||||
"${mod}+Right" = "movewindow right";
|
||||
|
||||
"${hyper}+Left" = "movewindow left";
|
||||
"${hyper}+Up" = "movewindow up";
|
||||
"${hyper}+Down" = "movewindow down";
|
||||
"${hyper}+Right" = "movewindow right";
|
||||
|
||||
"${mod}+Shift+h" = "exec ${config.home.homeDirectory}/bin/swayutils move prev";
|
||||
"${mod}+Shift+l" = "exec ${config.home.homeDirectory}/bin/swayutils move next";
|
||||
|
||||
"${mod}+Control+h" = "exec ${config.home.homeDirectory}/bin/swayutils focus prev";
|
||||
"${mod}+Control+l" = "exec ${config.home.homeDirectory}/bin/swayutils focus next";
|
||||
|
||||
"${hyper}+u" = "exec ${config.home.homeDirectory}/bin/swayutils move prev";
|
||||
"${hyper}+i" = "exec ${config.home.homeDirectory}/bin/swayutils move next";
|
||||
|
||||
"${hyper}+m" = "exec ${config.home.homeDirectory}/bin/swayutils focus prev";
|
||||
"${hyper}+Comma" = "exec ${config.home.homeDirectory}/bin/swayutils focus next";
|
||||
|
||||
"${hyper}+y" = "move left";
|
||||
"${hyper}+o" = "move right";
|
||||
|
||||
@@ -146,25 +101,6 @@ in {
|
||||
"${hyper}+b" = "split h";
|
||||
"${hyper}+v" = "split v";
|
||||
|
||||
"${mod}+Control+Return" = "exec --no-startup-id i3utils workspace new";
|
||||
"${mod}+Control+Shift+Return" = "exec --no-startup-id i3utils workspace new -b";
|
||||
"${mod}+Shift+Return" = "exec --no-startup-id i3utils workspace new -n, move next";
|
||||
|
||||
# "${mod}+Control+j" = "exec --no-startup-id $HOME/bin/scripts/godown";
|
||||
# "${mod}+Control+k" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
||||
# "${mod}+Control+u" = "exec --no-startup-id $HOME/bin/scripts/godown";
|
||||
# "${mod}+Control+i" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
||||
# "${mod}+Control+h" = "exec --no-startup-id i3utils workspace new -b";
|
||||
|
||||
"${hyper}+m" = "exec --no-startup-id $HOME/bin/scripts/godown";
|
||||
"${hyper}+comma" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
||||
|
||||
"${mod}+Shift+k" = "exec --no-startup-id i3utils window move prev";
|
||||
"${mod}+Shift+j" = "exec --no-startup-id i3utils window move next";
|
||||
|
||||
"${hyper}+i" = "exec --no-startup-id i3utils window move prev";
|
||||
"${hyper}+u" = "exec --no-startup-id i3utils window move next";
|
||||
|
||||
"${mod}+p" = "scratchpad show, resize set 80 ppt 80ppt, move position center";
|
||||
"${hyper}+p" = "scratchpad show, resize set 80 ppt 80ppt, move position center";
|
||||
|
||||
@@ -173,9 +109,9 @@ in {
|
||||
|
||||
"${hyper}+f" = "fullscreen toggle";
|
||||
|
||||
"XF86AudioLowerVolume" = "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-";
|
||||
"XF86AudioMute" = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
"XF86AudioRaiseVolume" = "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+";
|
||||
"XF86AudioLowerVolume" = "exec wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-";
|
||||
"XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
"XF86AudioRaiseVolume" = "exec wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+";
|
||||
|
||||
"XF86MonBrightnessUp" = "exec xbacklight -inc 10";
|
||||
"XF86MonBrightnessDown" = "exec xbacklight -dec 10";
|
||||
|
||||
Reference in New Issue
Block a user