Update config

This commit is contained in:
Hydroxycarbamide 2024-09-18 09:44:00 +02:00
parent b11a88ded9
commit c21063c727
4 changed files with 39 additions and 13 deletions

View file

@ -4,7 +4,6 @@ general {
border_size = 2
col.active_border = 0xfff4dbd6
col.inactive_border = 0x001e1e2e
apply_sens_to_raw = 0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
resize_on_border = true
# no_border_on_floating = true

View file

@ -38,6 +38,7 @@ bind = $mod, P, pseudo, # dwindle only
bind = $mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
bind = $mod, N, exec, networkmanager_dmenu
bind = CAPS, , exec, swayosd-client --caps-lock-led
# bind = $mod, R, exec, nwg-dock-hyprland
# Scratch pad

View file

@ -120,7 +120,7 @@ input {
output "DP-1" {
mode "1920x1080"
position x=0 y=0
// variable-refresh-rate
variable-refresh-rate on-demand=true
}
@ -203,11 +203,17 @@ layout {
// fixed 1920
}
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
// preset-window-heights {
// proportion 0.5
// proportion 1.0
// }
// You can change the default width of the new windows.
default-column-width { proportion 0.66667; }
// default-column-width { proportion 0.66667; }
// If you leave the brackets empty, the windows themselves will decide their initial width.
// default-column-width {}
default-column-width {}
// Set gaps around windows in logical pixels.
gaps 16
@ -235,9 +241,6 @@ layout {
// You can override environment variables for processes spawned by niri.
environment {
// Set a variable like this:
// QT_QPA_PLATFORM "wayland"
DISPLAY ":0"
QT_QPA_PLATFORMTHEME "qt6ct"
}
@ -398,12 +401,26 @@ window-rule {
match app-id="genshinimpact.exe"
match app-id="starrail.exe"
match app-id="zenlesszonezero.exe"
match app-id="osu!"
match app-id="Minecraft*"
variable-refresh-rate true
open-on-output "DP-1"
open-maximized true
open-fullscreen true
}
window-rule {
match app-id="firefox"
open-maximized true
}
window-rule {
match app-id="foot*"
match app-id="fm-term"
default-column-width { proportion 0.5; }
}
// Here's a useful example. Work around WezTerm's initial configure bug
// by setting an empty default-column-width.
window-rule {
@ -439,7 +456,7 @@ binds {
Mod+Return { spawn "footclient"; }
Mod+D { spawn "rofi" "-show" "drun" "-theme" "catppuccin-macchiato"; }
Mod+W { spawn "rofi" "-show" "window" "-theme" "catppuccin-macchiato"; }
Mod+Q { spawn "wlogout" "-p" "layer-shell"; }
Mod+Q repeat=false { spawn "wlogout" "-p" "layer-shell"; }
// Mod+E repeat=false { spawn "kitty" "--class='fm-term'" "nnn" "-da" "-P" "p"; }
Mod+E repeat=false { spawn "footclient" "-a" "fm-term" "yazi"; }
@ -619,10 +636,14 @@ binds {
// Mod+Shift+BracketLeft { consume-window-into-column; }
// Mod+Shift+BracketRight { expel-window-from-column; }
Mod+Shift+BracketLeft { consume-window-into-column; }
Mod+Shift+BracketRight { expel-window-from-column; }
// There are also commands that consume or expel a single window to the side.
Mod+BracketLeft { consume-or-expel-window-left; }
Mod+BracketRight { consume-or-expel-window-right; }
Mod+Shift+R { switch-preset-window-height; }
Mod+Ctrl+R { reset-window-height; }
Mod+R repeat=false { switch-preset-column-width; }
Mod+F repeat=false { maximize-column; }
Mod+Shift+F repeat=false { fullscreen-window; }
@ -656,7 +677,9 @@ binds {
Mod+Shift+S { screenshot; }
Ctrl+Print { screenshot-screen; }
Alt+Print { screenshot-window; }
Mod+Ctrl+Shift+S { screenshot-window; }
// Mod+Ctrl+Shift+S { screenshot-window; }
// Mod+Ctrl+Shift+S { spawn "normcap"; }
Mod+Ctrl+Shift+S { spawn "bash" "-c" "bash -c 'grim -g \"$(slurp)\" /tmp/grim.png && tesseract -l eng+jpn /tmp/grim.png - | wl-copy && wl-paste | xargs -I{} notify-send \"Tesseract\" \"Copied '{}'\"'"; }
// The quit action will show a confirmation dialog to avoid accidental exits.
// If you want to skip the confirmation dialog, set the flag like so:
@ -713,6 +736,7 @@ spawn-at-startup "swaync"
spawn-at-startup "waybar"
spawn-at-startup "systemctl" "start" "--user" "foot-server"
spawn-at-startup "systemctl" "start" "--user" "sunshine"
spawn-at-startup "systemctl" "start" "--user" "xwayland-satellite"
// spawn-at-startup "systemctl" "start" "--user" "gammastep"
spawn-at-startup "/usr/lib/polkit-kde-authentication-agent-1"
spawn-at-startup "/usr/lib/kdeconnectd"
@ -721,4 +745,4 @@ spawn-at-startup "wl-paste" "--type" "text" "--watch" "cliphist" "store"
spawn-at-startup "wl-paste" "--type" "image" "--watch" "cliphist" "store"
spawn-at-startup "swayosd-server"
spawn-at-startup "swayidle" "before-sleep" "'loginctl lock-session'" "lock" "'swaylock'"
spawn-at-startup "xwayland-satellite"
// spawn-at-startup "xwayland-satellite"

View file

@ -6,6 +6,7 @@
"modules-left": [
"hyprland/workspaces",
"sway/workspaces#sway",
"niri/workspaces",
"river/tags",
// "custom/workspaces",
// "river/layout",
@ -176,7 +177,7 @@
"icon-size": 14,
"icon-theme": "Papirus-Dark",
"active-first": false,
"tooltip-format": "{title} - {app_id}",
"tooltip-format": "{title} [{app_id}]",
"on-click": "activate",
"on-click-middle": "close",
"ignore-list": [],
@ -296,8 +297,9 @@
"tooltip-format": "Games running: {count}"
},
"clock": {
"format": "{:%R}",
// "format": "{:%a %d %b %R}",
"format": "{:%R}",
"format-alt": "{:L%A %d %B, %Y (%R)}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "month",
@ -365,7 +367,7 @@
"interval": 30
},
"custom/updates": {
"interval": 120,
"interval": 60,
"return-type": "string",
"exec": "~/.config/waybar/modules/updates.sh",
"tooltip": false,