closes #1, closes #2

This commit is contained in:
nils 2024-12-31 02:23:01 +01:00
parent 20747da93e
commit 80d6598780
12 changed files with 76 additions and 50 deletions

View file

@ -0,0 +1 @@
../mako

2
.config/dinit.d/mako Normal file
View file

@ -0,0 +1,2 @@
type = process
command = mako

View file

@ -1,2 +1,2 @@
type = process type = process
command = swaybg -m fill -i /home/n/Pictures/wallpaper.png command = swaybg -m fill -i /home/n/.cache/current_wallpaper.png

View file

@ -1,3 +1,2 @@
type = process type = process
command = waybar command = waybar
waits-for = swaync

9
.config/mako/config Normal file
View file

@ -0,0 +1,9 @@
font=ProFontWindowsNerdFontMono 12
default-timeout=8000
margin=8
border-size=2
icon-path=/usr/share/icons/Papirus-Dark
text-color=#c3c4c7
background-color=#121320
border-color=#5D629A

View file

@ -3,8 +3,8 @@
# Things to spawn # Things to spawn
riverctl map normal Super Return spawn footclient riverctl map normal Super Return spawn footclient
riverctl map normal Super Space spawn fuzzel riverctl map normal Super Space spawn fuzzel
riverctl map normal Super Tab spawn "swaync-client -t -sw" riverctl map normal Super+Control S spawn 'pkill -9 slurp || grim -g "$(slurp)" - | wl-copy -t image/png'
riverctl map normal Super+Control S spawn 'pkill -9 slurp ; grim -g "$(slurp -d)" - | wl-copy -t image/png' riverctl map normal Super Print spawn 'grim | wl-copy -t image/png'
riverctl map normal Super V spawn pavucontrol riverctl map normal Super V spawn pavucontrol
# Super+Q to close the focused view # Super+Q to close the focused view

View file

@ -0,0 +1,9 @@
font=ProFontWindowsNerdFontMono 12
default-timeout=8000
margin=8
border-size=2
icon-path=/usr/share/icons/Papirus-Dark
text-color={foreground}
background-color={background}
border-color={color1}

View file

@ -9,13 +9,16 @@
"modules-right": [ "modules-right": [
"tray", "tray",
"battery", "battery",
"custom/notification"
], ],
"layer": "bottom", "layer": "bottom",
"mode": "dock", "mode": "dock",
"position": "top", "position": "top",
"start_hidden": false, "start_hidden": false,
"fixed-center": true, "fixed-center": true,
"height": 27,
"margin": 4,
"battery": { "battery": {
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": "󱟦 {capacity}%", "format-charging": "󱟦 {capacity}%",
@ -32,8 +35,11 @@
"󰂂", "󰂂",
"󰁹" "󰁹"
], ],
"format-plugged": "󱟦 {capacity}%" "format-plugged": "󱟦 {capacity}%",
"tooltip": true,
"tooltip-format": "{timeTo}"
}, },
"clock": { "clock": {
"format": "{:L%H:%M %A, %d %B}", "format": "{:L%H:%M %A, %d %B}",
"interval": 1, "interval": 1,
@ -41,6 +47,7 @@
"locale": "C", "locale": "C",
"timezone": "Europe/Amsterdam" "timezone": "Europe/Amsterdam"
}, },
"custom/notification": { "custom/notification": {
"escape": "true", "escape": "true",
"exec": "swaync-client -swb", "exec": "swaync-client -swb",
@ -50,22 +57,13 @@
"return-type": "json", "return-type": "json",
"tooltip": "false" "tooltip": "false"
}, },
"tray": { "tray": {
"icon-size": 16, "icon-size": 16,
"reverse-direction": "true", "reverse-direction": "true",
"spacing": 10 "spacing": 10
}, },
"height": 27,
"margin": 4,
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 16,
"on-click": "activate",
"on-click-middle": "minimize-raise",
"on-click-right": "close",
"tooltip": "true",
"tooltip-format": "{title}"
},
"river/tags": { "river/tags": {
"num-tags": 9, "num-tags": 9,
"tag-labels": [ "tag-labels": [

View file

@ -6,6 +6,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
color: @foreground; color: @foreground;
font-weight: 900;
} }
#waybar { #waybar {
@ -16,48 +17,29 @@
border-radius: 100px; border-radius: 100px;
} }
#taskbar, #battery, #tray, #custom-notification, #clock, #pulseaudio-slider, #tags { #battery, #tray, #custom-notification, #clock, #tags, tooltip {
margin: 2px 5px;
padding: 0 6px;
background-color: @color0;
border-radius: 5px;
}
#taskbar {
margin: 0px 5px; margin: 0px 5px;
margin-left: 10px; padding: 0 6px;
} border-radius: 0px;
#taskbar button {
padding: 0 2px;
background-color: transparent;
border-radius: 2px;
}
#taskbar button.active {
border: 0px solid @color0;
border-bottom: 2px solid @color2;
}
#taskbar.empty {
padding: 0;
} }
tooltip { tooltip {
background-color: @background; background-color: @background;
border-radius: 3px; padding: 0 2px;
color: @color1; }
font-size:14px;
tooltip label {
color: @foreground;
font-size: 14px;
} }
#battery { #battery {
font-size: 16px; font-size: 16px;
font-weight: 900;
color: @foreground; color: @foreground;
margin-right: 10px;
} }
#clock { #clock {
font-weight: 900;
font-size: 16px; font-size: 16px;
min-width: 50px; min-width: 50px;
color: @foreground; color: @foreground;
@ -79,7 +61,6 @@ tooltip {
} }
#tags * { #tags * {
font-weight: 900;
font-size: 16px; font-size: 16px;
margin: 0; margin: 0;
padding: 0; padding: 0;

5
.local/bin/update-greeter.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
doas cp ~/.cache/current_wallpaper.png /etc/greetd/
doas cp ~/.cache/wal/colors-waybar.css /etc/greetd/wal/
exit 0

22
.local/bin/wall.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/sh
if [ "$#" -ne 1 ]; then
echo "Usage: wall.sh <path/to/wallpaper.png>"
exit 1
fi
cp "$1" ~/.cache/current_wallpaper.png
wal -i ~/.cache/current_wallpaper.png -stne
rm ~/.config/mako/config
cp ~/.cache/wal/colors-mako ~/.config/mako/config
makoctl reload
notify-send "Kleuren geupdate!" -t 2000
for service in swaybg waybar foot-server; do
dinitctl restart "$service"
done
exit 0

6
.zshrc
View file

@ -2,13 +2,13 @@ HISTFILE=~/.histfile
HISTSIZE=1000 HISTSIZE=1000
SAVEHIST=1000 SAVEHIST=1000
unsetopt autocd beep notify unsetopt autocd beep notify
setopt PRINT_EXIT_VALUE
bindkey -e bindkey -e
zstyle :compinstall filename '~/.zshrc' zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit promptinit autoload -Uz compinit
compinit compinit
promptinit
export TERM=xterm-256color export TERM=xterm-256color
prompt redhat export PS1="[%n@%m %1~]%(#.#.$) "
# Aliases # Aliases
alias ls="ls --color=auto" alias ls="ls --color=auto"