AutoYADM commit: 2025-03-26 11:15:24

This commit is contained in:
Daniel Fichtinger 2025-03-26 11:15:24 -04:00
parent 63679ebbd5
commit 7aa4af336c
4 changed files with 114 additions and 406 deletions

View file

@ -3,5 +3,5 @@ name = "markdown"
file-types = [{ glob = "/tmp/aerc-compose-*.eml" }] file-types = [{ glob = "/tmp/aerc-compose-*.eml" }]
language-servers = ["harper-ls", "marksman", "scls"] language-servers = ["harper-ls", "marksman", "scls"]
# formatter = { command = "/usr/lib/aerc/filters/wrap", args = ["-w", "74"] } # formatter = { command = "/usr/lib/aerc/filters/wrap", args = ["-w", "74"] }
formatter = { command = "/home/fic/.config/mail/format.py" } formatter = { command = "/home/fic/dev/mail-utils/format.py" }
auto-format = true auto-format = true

View file

@ -65,6 +65,16 @@ output "DP-1" {
layout { layout {
// Set gaps around windows in logical pixels. // Set gaps around windows in logical pixels.
gaps 16 gaps 16
struts {
top -16
bottom -16
// left 8
// right 8
// top 7
// bottom 16
}
// gaps 16
// gaps 8
// When to center a column when changing focus, options are: // When to center a column when changing focus, options are:
// - "never", default behavior, focusing an off-screen column will keep at the left // - "never", default behavior, focusing an off-screen column will keep at the left
// or right edge of the screen. // or right edge of the screen.
@ -104,13 +114,13 @@ layout {
// `draw-border-with-background`. // `draw-border-with-background`.
// You can change how the focus ring looks. // You can change how the focus ring looks.
focus-ring { focus-ring {
// off off
width 1 width 1
active-color "#B14242" active-color "#B14242"
inactive-color "#121212" inactive-color "#121212"
} }
border { border {
off // off
width 1 width 1
active-color "#B14242" active-color "#B14242"
inactive-color "#121212" inactive-color "#121212"
@ -145,18 +155,11 @@ layout {
// You can also change the shadow color and opacity. // You can also change the shadow color and opacity.
color "#0007" color "#0007"
} }
// Struts shrink the area occupied by windows, similarly to layer-shell panels. // Struts shrink the area occupied by windows, similarly to layer-shell panels.
// You can think of them as a kind of outer gaps. They are set in logical pixels. // You can think of them as a kind of outer gaps. They are set in logical pixels.
// Left and right struts will cause the next window to the side to always be visible. // Left and right struts will cause the next window to the side to always be visible.
// Top and bottom struts will simply add outer gaps in addition to the area occupied by // Top and bottom struts will simply add outer gaps in addition to the area occupied by
// layer-shell panels and regular gaps. // layer-shell panels and regular gaps.
struts {
// left 64
// right 64
// top 64
// bottom 64
}
} }
// Add lines like this to spawn processes at startup. // Add lines like this to spawn processes at startup.
// Note that running niri as a session supports xdg-desktop-autostart, // Note that running niri as a session supports xdg-desktop-autostart,
@ -165,8 +168,9 @@ layout {
// spawn-at-startup "alacritty" "-e" "fish" // spawn-at-startup "alacritty" "-e" "fish"
// spawn-at-startup "dunst" "&" // spawn-at-startup "dunst" "&"
// spawn-at-startup "dunst" "&" // spawn-at-startup "dunst" "&"
spawn-at-startup "systemctl" "--user" "start" "dunst"
spawn-at-startup "systemctl" "--user" "restart" "blueman-applet.service" spawn-at-startup "systemctl" "--user" "restart" "blueman-applet.service"
spawn-at-startup "systemctl" "--user" "restart" "blueman-manager.service"
spawn-at-startup "systemctl" "--user" "restart" "waybar"
spawn-at-startup "xwayland-satellite" spawn-at-startup "xwayland-satellite"
// Uncomment this line to ask the clients to omit their client-side decorations if possible. // Uncomment this line to ask the clients to omit their client-side decorations if possible.
// If the client will specifically ask for CSD, the request will be honored. // If the client will specifically ask for CSD, the request will be honored.
@ -293,6 +297,9 @@ binds {
Mod+Return { Mod+Return {
spawn "footclient" spawn "footclient"
} }
Mod+Space {
spawn "footclient"
}
Mod+D { Mod+D {
spawn "fuzzel" "--hide-before-typing" "-I" "--placeholder=Select an application:" spawn "fuzzel" "--hide-before-typing" "-I" "--placeholder=Select an application:"
} }

View file

@ -1,356 +0,0 @@
[
// TOP BAR
{
// "output": "DP-1",
"layer": "top",
"position": "top",
"modules-left": [
"cava",
"custom/colcount"
// "niri/workspaces"
],
"modules-center": [
"niri/window"
],
"modules-right": [
"clock"
],
"niri/window": {
"max-length": 50,
"separate-outputs": true
},
"custom/colcount": {
"exec": "~/dev/niri-windows/niri-windows.py",
"return-type": "json",
"restart-interval": "never",
"format": "{} "
},
"custom/mail": {
"exec": "~/.config/mail/mail-indicator.sh",
"restart-interval": "never",
"format": "{}"
},
"custom/recorder": {
"exec": "~/dev/niri-recorder/recorder.py",
"return-type": "json",
"restart-interval": "never",
"on-click": "~/dev/niri-recorder/recorder.sh screen",
"on-click-right": "~/dev/niri-recorder/recorder.sh region",
"format": " {} "
},
"custom/delim": {
"format": "|"
},
"cava": {
"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
"format-icons": [
"▁",
"▂",
"▃",
"▄",
"▅",
"▆",
"▇",
"█"
],
"actions": {
"on-click-right": "mode"
}
},
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
"music": "󰎇",
"active": "",
"default": ""
}
},
"battery": {
"format": "bat {capacity}%"
},
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}"
},
"pulseaudio": {
"scroll-step": 5,
"max-volume": 150,
"format": "vol {volume}%",
"format-muted": "vol mut",
"nospacing": 1,
"on-click": "pavucontrol",
"tooltip": false
},
"cpu": {
"interval": 10,
"format": "cpu {usage}%",
"max-length": 10
},
"memory": {
"interval": 30,
"format": "mem {percentage}%",
"max-length": 10
}
},
// bottom bar
{
// "output": "DP-1",
"layer": "top",
"position": "bottom",
"modules-left": [
"cava"
],
"modules-center": [
"cpu",
"custom/delim",
"memory",
"custom/delim",
"pulseaudio",
"custom/delim",
"battery",
"custom/delim",
"custom/recorder"
],
"modules-right": [
"tray"
],
"niri/window": {
"max-length": 50,
"separate-outputs": true
},
"custom/colcount": {
"exec": "~/dev/niri-windows/niri-windows.py",
"return-type": "json",
"restart-interval": "never",
"format": "{} "
},
"custom/recorder": {
"exec": "~/dev/niri-recorder/recorder.py",
"return-type": "json",
"restart-interval": "never",
"on-click": "~/dev/niri-recorder/recorder.sh screen",
"on-click-right": "~/dev/niri-recorder/recorder.sh region",
"format": " {} "
},
"custom/delim": {
"format": "|"
},
"cava": {
"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
"format-icons": [
"▁",
"▂",
"▃",
"▄",
"▅",
"▆",
"▇",
"█"
],
"actions": {
"on-click-right": "mode"
}
},
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
"music": "󰎇",
"active": "",
"default": ""
}
},
"battery": {
"format": "bat {capacity}%"
},
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}"
},
"pulseaudio": {
"scroll-step": 5,
"max-volume": 150,
"format": "vol {volume}%",
"format-muted": "vol mut",
"nospacing": 1,
"on-click": "pavucontrol",
"tooltip": false
},
"cpu": {
"interval": 10,
"format": "cpu {usage}%",
"max-length": 10
},
"memory": {
"interval": 30,
"format": "mem {percentage}%",
"max-length": 10
}
},
// LEFT BAR
{
// "output": "DP-1",
"layer": "top",
"exclusive": false,
"gtk-layer-shell": true,
"name": "leftbar",
"width": 14,
"position": "left",
"modules-left": [
"niri/workspaces"
],
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
"active": "",
"default": ""
}
}
}
// TOP BAR
// {
// // "output": "HDMI-A-1",
// "layer": "top",
// "position": "top",
// "modules-left": [
// "cava",
// "custom/colcount"
// // "niri/workspaces"
// ],
// "modules-center": [
// "niri/window"
// ],
// "modules-right": [
// // "custom/mail",
// "cpu",
// "custom/delim",
// "memory",
// "custom/delim",
// "pulseaudio",
// "custom/delim",
// "battery",
// "custom/delim",
// "custom/recorder",
// "custom/delim",
// "tray",
// "clock"
// ],
// "niri/window": {
// "max-length": 50,
// "separate-outputs": true
// },
// "custom/colcount": {
// "exec": "~/dev/niri-windows/niri-windows.py",
// "return-type": "json",
// "restart-interval": "never",
// "format": "{} "
// },
// "custom/mail": {
// "exec": "~/.config/mail/mail-indicator.sh",
// "restart-interval": "never",
// "format": "{}"
// },
// "custom/recorder": {
// "exec": "~/dev/niri-recorder/recorder.py",
// "return-type": "json",
// "restart-interval": "never",
// "on-click": "~/dev/niri-recorder/recorder.sh screen",
// "on-click-right": "~/dev/niri-recorder/recorder.sh region",
// "format": " {} "
// },
// "custom/delim": {
// "format": "|"
// },
// "cava": {
// "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
// // "framerate": 30,
// // "autosens": 1,
// // "sensitivity": 100,
// // "bars": 14,
// // "lower_cutoff_freq": 50,
// // "higher_cutoff_freq": 10000,
// // "method": "pulse",
// // "source": "auto",
// // "stereo": true,
// // "reverse": false,
// // "bar_delimiter": 0,
// // "monstercat": false,
// // "waves": false,
// // "noise_reduction": 0.77,
// // "input_delay": 2,
// "format-icons": [
// "▁",
// "▂",
// "▃",
// "▄",
// "▅",
// "▆",
// "▇",
// "█"
// ],
// "actions": {
// "on-click-right": "mode"
// }
// },
// "niri/workspaces": {
// "format": "{icon}",
// "format-icons": {
// // Named workspaces
// // (you need to configure them in niri)
// // "browser": "",
// // "discord": "",
// // "chat": "<b></b>",
// // Icons by state
// "music": "󰎇",
// "active": "",
// "default": ""
// }
// },
// // "sway/workspaces": {
// // "disable-scroll" : false,
// // },
// "battery": {
// "format": "bat {capacity}%"
// // "format-icons": ["", "", "", "", ""]
// },
// "clock": {
// "format-alt": "{:%a, %d. %b %H:%M}"
// },
// "pulseaudio": {
// "scroll-step": 5,
// "max-volume": 150,
// "format": "vol {volume}%",
// "format-muted": "vol mut",
// "nospacing": 1,
// "on-click": "pavucontrol",
// "tooltip": false
// },
// "cpu": {
// "interval": 10,
// "format": "cpu {usage}%",
// "max-length": 10
// },
// "memory": {
// "interval": 30,
// "format": "mem {percentage}%",
// "max-length": 10
// }
// },
// // LEFT BAR
// {
// // "output": "HDMI-A-1",
// "layer": "top",
// "exclusive": false,
// "gtk-layer-shell": true,
// "name": "leftbar",
// "width": 14,
// "position": "left",
// "modules-left": [
// "niri/workspaces"
// ],
// "niri/workspaces": {
// "format": "{icon}",
// "format-icons": {
// "active": "",
// "default": ""
// }
// }
// }
]

1
.config/waybar/config Symbolic link
View file

@ -0,0 +1 @@
config##hostname.dpad

View file

@ -13,18 +13,6 @@
"niri/window" "niri/window"
], ],
"modules-right": [ "modules-right": [
"custom/mail",
"cpu",
"custom/delim",
"memory",
"custom/delim",
"pulseaudio",
"custom/delim",
"battery",
"custom/delim",
"custom/recorder",
"custom/delim",
"tray",
"clock" "clock"
], ],
"niri/window": { "niri/window": {
@ -55,21 +43,6 @@
}, },
"cava": { "cava": {
"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf", "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
// "framerate": 30,
// "autosens": 1,
// "sensitivity": 100,
// "bars": 14,
// "lower_cutoff_freq": 50,
// "higher_cutoff_freq": 10000,
// "method": "pulse",
// "source": "auto",
// "stereo": true,
// "reverse": false,
// "bar_delimiter": 0,
// "monstercat": false,
// "waves": false,
// "noise_reduction": 0.77,
// "input_delay": 2,
"format-icons": [ "format-icons": [
"▁", "▁",
"▂", "▂",
@ -87,23 +60,106 @@
"niri/workspaces": { "niri/workspaces": {
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
// Named workspaces
// (you need to configure them in niri)
// "browser": "",
// "discord": "",
// "chat": "<b></b>",
// Icons by state
"music": "󰎇", "music": "󰎇",
"active": "", "active": "",
"default": "" "default": ""
} }
}, },
// "sway/workspaces": {
// "disable-scroll" : false,
// },
"battery": { "battery": {
"format": "bat {capacity}%" "format": "bat {capacity}%"
// "format-icons": ["", "", "", "", ""] },
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}"
},
"pulseaudio": {
"scroll-step": 5,
"max-volume": 150,
"format": "vol {volume}%",
"format-muted": "vol mut",
"nospacing": 1,
"on-click": "pavucontrol",
"tooltip": false
},
"cpu": {
"interval": 10,
"format": "cpu {usage}%",
"max-length": 10
},
"memory": {
"interval": 30,
"format": "mem {percentage}%",
"max-length": 10
}
},
// bottom bar
{
// "output": "DP-1",
"layer": "top",
"position": "bottom",
"modules-left": [
"cava"
],
"modules-center": [
"cpu",
"custom/delim",
"memory",
"custom/delim",
"pulseaudio",
"custom/delim",
"battery",
"custom/delim",
"custom/recorder"
],
"modules-right": [
"tray"
],
"niri/window": {
"max-length": 50,
"separate-outputs": true
},
"custom/colcount": {
"exec": "~/dev/niri-windows/niri-windows.py",
"return-type": "json",
"restart-interval": "never",
"format": "{} "
},
"custom/recorder": {
"exec": "~/dev/niri-recorder/recorder.py",
"return-type": "json",
"restart-interval": "never",
"on-click": "~/dev/niri-recorder/recorder.sh screen",
"on-click-right": "~/dev/niri-recorder/recorder.sh region",
"format": " {} "
},
"custom/delim": {
"format": "|"
},
"cava": {
"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
"format-icons": [
"▁",
"▂",
"▃",
"▄",
"▅",
"▆",
"▇",
"█"
],
"actions": {
"on-click-right": "mode"
}
},
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
"music": "󰎇",
"active": "",
"default": ""
}
},
"battery": {
"format": "bat {capacity}%"
}, },
"clock": { "clock": {
"format-alt": "{:%a, %d. %b %H:%M}" "format-alt": "{:%a, %d. %b %H:%M}"