drastic rework of my environment, and include some new tools

This commit is contained in:
Simon Belmont 2025-05-08 20:38:29 -04:00
parent 9dcf22ecd8
commit 3d8e8e1534
4 changed files with 100 additions and 114 deletions

View file

@ -68,7 +68,7 @@ exec-once = [workspace 2 silent] kitty --session ~/.config/kitty/session --liste
exec-once = [workspace 2 silent] sleep 1; kitty newsboat
exec-once = [workspace 6 silent] kitty btop
exec-once = [workspace 6 silent] sleep 1; kitty
exec-once = [workspace 6 silent] sleep 2;kitty zsh -c "source ~/.zshrc;nnn -deUxH"
exec-once = [workspace 6 silent] sleep 2;kitty yazi
exec-once = steam -silent
exec-once = sleep 1; heroic --ozone-platform=wayland
exec-once = [workspace special:password silent] keepassxc
@ -78,7 +78,7 @@ exec-once = killall nextcloud
exec-once = gammastep -m wayland -O 6500K -g 1.1.0
exec-once = [workspace special:email silent] sleep 1; tutanota-desktop --ozone-platform-hint=auto
exec-once = discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized
exec-once = jellyfin-mpv-shim
exec = jellyfin-mpv-shim
# Variables

View file

@ -14,7 +14,7 @@
"output": "DP-2",
"layer": "top",
"modules-left": ["hyprland/workspaces", "hyprland/mode"],
"modules-center": ["custom/gpu-usage", "cpu", "memory", "group/disks", "temperature", "clock", "custom/weather", "idle_inhibitor", "custom/pacman", "group/networks", "bluetooth", "group/audio-player"],
"modules-center": ["group/statistics", "group/status", "group/networks", "group/audio-player"],
/* "modules-right": ["tray", "custom/scratchpad-indicator", "pulseaudio",], */
"modules-right": ["group/taskbar", "group/group-power"],
@ -44,10 +44,22 @@
"group/audio-player": {
"orientation": "inherit",
"modules": [
"mpris",
"group/playing",
"cava"
]
},
"group/playing": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "not-power",
"transition-left-to-right": true,
},
"modules": [
"mpris",
"mpris#2"
]
},
"mpris": {
"format": "<span color=\"#bd93f9\">{player_icon}</span> <span color=\"#f8f8f2\">Playing </span>",
"format-paused": "<span color=\"#bd93f9\">{status_icon}</span> <span color=\"#f8f8f2\">Paused </span>",
@ -66,7 +78,16 @@
},
// "ignored-players": ["firefox"]
},
"mpris#2": {
"format": "<span color=\"#8be9fd\"> </span><span color=\"#f8f8f2\">{title} </span><span color=\"#ff79c6\">󰠃 </span><span color=\"#f8f8f2\">{artist} <small>({position}/{length}) </small></span>",
"format-paused": "<span color=\"#8be9fd\"> </span><span color=\"#f8f8f2\">{title} </span><span color=\"#ff79c6\">󰠃 </span><span color=\"#f8f8f2\">{artist} <small>({position}/{length}) </small></span>",
"tooltip-format": "󰠃 {artist}:  {title} (󰀥 {album})",
"interval": 1,
"album-len": 0,
"on-click": "exec ~/.bin/sh/dunstaudio.sh play_pause",
"on-click-right": "exec ~/.bin/sh/dunstaudio.sh next_track",
"on-click-middle": "exec ~/.bin/sh/dunstaudio.sh prev_track",
},
"cava": {
"cava_config": "/home/peter/.config/cava/config",
"framerate": 240,
@ -88,6 +109,16 @@
"on-click-right": "mode"
}
},
"group/statistics": {
"orientation": "inherit",
"modules": [
"custom/gpu-usage",
"cpu",
"memory",
"group/disks",
"temperature"
]
},
"custom/pacman": {
"format": "<span color=\"#8BE9FD\"> </span>{} ",
"tooltip": true,
@ -128,8 +159,10 @@
"group/networks": {
"orientation": "inherit",
"modules": [
"custom/pacman",
"network",
"custom/vpn",
"bluetooth"
]
},
"network": {
@ -137,8 +170,8 @@
"format": "{ifname}",
"interval": 1,
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "<span color=\"#50fa7b\"> </span>{ifname}",
"format-disconnected": "<span color=\"#FF5555\"> </span>{ifname}",
"format-ethernet": "<span color=\"#50fa7b\"> </span>{ifname}",
"format-disconnected": "<span color=\"#FF5555\">󱄁 </span>{ifname}",
"max-length": 50,
"tooltip-format": "speed:  {bandwidthDownBytes} /  {bandwidthUpBytes}",
"on-click": "kitty --class nmnet --single-instance -e nmtui",
@ -164,6 +197,14 @@
"icon-size": 20,
"spacing": 6
},
"group/status": {
"orientation": "inherit",
"modules": [
"clock",
"custom/weather",
"idle_inhibitor"
]
},
"clock": {
"format": "<span color=\"#FF92DF\">󱑏</span> {:%I:%M:%OS} ",
"interval": 1,
@ -263,7 +304,7 @@
"custom/vpn": {
"format": "<span color=\"#ff5555\">  </span>",
"tooltip": true,
"tooltip-format": "Connected",
"tooltip-format": "Connected to VPN",
"exec": "echo '{\"class\": \"connected\"}'",
"exec-if": "test -d /proc/sys/net/ipv4/conf/tun0",
"return-type": "json",

View file

@ -69,15 +69,7 @@ window#waybar.hidden {
}
#bluetooth {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#battery {
@ -125,40 +117,40 @@ window#waybar.hidden {
color: #f8f8f2;
background: #282a36;
}
#clock {
#status {
margin-top: 6px;
margin-left: 6px;
padding-left: 8px;
padding-right: 3px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
padding-top: 2px;
padding-bottom: 2px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: transparent;
/*background: #1A1826;*/
}
#memory {
#clock {
color: #f8f8f2;
}
#statistics {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
margin-bottom: 0px;
padding-right: 10px;
padding-top: 2px;
padding-bottom: 2px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#memory {
color: #f8f8f2;
}
#cpu {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
margin-bottom: 0px;
padding-right: 10px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#taskbar {
@ -170,40 +162,19 @@ window#waybar.hidden {
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #5d4185;
background: #282a36;
}
#disk {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#temperature {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#idle_inhibitor {
margin-top: 6px;
margin-left: 1px;
padding-left: 1px;
padding-right: 6px;
margin-bottom: 0px;
border-radius: 10px;
color: #f8f8f2;
}
#idle_inhibitor.activated {
@ -215,15 +186,7 @@ window#waybar.hidden {
}
#custom-weather {
margin-top: 6px;
margin-left: 3px;
padding-left: 3px;
padding-right: 6px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: transparent;
}
#custom-weather.severe {
@ -268,15 +231,7 @@ window#waybar.hidden {
}
#custom-gpu-usage {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#audio-player {
margin-top: 6px;
@ -324,15 +279,6 @@ window#waybar.hidden {
background: #8BE9FD;
}
#custom-pacman {
margin-top: 6px;
margin-left: 2px;
padding-left: 5px;
padding-right: 5px;
margin-right: 2px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f2f2;
background: transparent;
}

27
.zshrc
View file

@ -19,6 +19,7 @@ autoload -Uz compinit history-substring-search-up history-substring-search-down
zstyle ':completion:*' menu select # Auto completion
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zle -N bracketed-paste bracketed-paste-url-magic # autoquote urls
export EDITOR=nvim
# 2. Auto correction
@ -47,24 +48,22 @@ alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/.git/ --work-tree=$HOME'
eval "$(starship init zsh)"
# 7. nnn variables
# 7. yazi wrapper
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}
BLK="04" CHR="04" DIR="04" EXE="00" REG="00" HARDLINK="00" SYMLINK="06" MISSING="00" ORPHAN="01" FIFO="0F" SOCK="0F" OTHER="02"
export NNN_FCOLORS="$BLK$CHR$DIR$EXE$REG$HARDLINK$SYMLINK$MISSING$ORPHAN$FIFO$SOCK$OTHER" NNN_COLORS="2345"
export NNN_TRASH=1
export NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$"
export NNN_PLUG='p:preview-tui;c:x2sel'
export SPLIT='h'
export NNN_FIFO='/tmp/nnn.fifo'
export NNN_BMS='d:/mnt/M2/Downloads/;u:~/;b:/mnt/Backups;g:/media/Games;s:/mnt/SSD;m:/mnt/M2;n:/mnt/M2/Nextcloud;w:/mnt/M2/Nextcloud/Notes;c:~/.config;r:/run/media;a:/mnt/M2/Downloads/AUR;!:~/.bin/sh;t:~/.local/share/Trash/files;y:/home/peter/Sync'
export VISUAL='vim'
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# 8. Aliases
# 8.1 zsh aliases
alias ls='nnn -deUxH'
alias ls='yazi'
alias aurdir='cd /mnt/M2/Downloads/AUR'
alias gitdir='cd /mnt/M2/Downloads/git'
alias notesdir='cd /mnt/M2/Nextcloud/Notes'
@ -73,7 +72,7 @@ alias cp='cp -i'
alias rm='rm -i'
alias ..='cd ..'
alias ...='cd ../..'
alias visudo='sudo EDITOR=vim visudo'
alias visudo='sudo EDITOR=nvim visudo'
# 8.2 Hyprland aliases