diff options
| -rwxr-xr-x | bin/guiscripts/dmfm | 3 | ||||
| -rw-r--r-- | config/essentials/nvim/lua/user/packer.lua | 2 | ||||
| -rw-r--r-- | config/essentials/zsh/.zshrc | 52 | ||||
| -rw-r--r--[l---------] | config/wayland/waybar/config.jsonc | 79 | ||||
| -rw-r--r--[l---------] | config/wayland/waybar/style.css | 143 | 
5 files changed, 273 insertions, 6 deletions
| diff --git a/bin/guiscripts/dmfm b/bin/guiscripts/dmfm index d1dd8b8..9485469 100755 --- a/bin/guiscripts/dmfm +++ b/bin/guiscripts/dmfm @@ -2,9 +2,10 @@  while true  do +    dir="$(printf '%s' "$PWD" | sed "s#^$HOME#\~#;s#\([^/]\)[^/]*/#\1/#g")"  	file=$(find . -maxdepth 1 -mindepth 1 -not -name '.*' -printf '%y\t%f\n' |  		sort -k 1 -k 2 | cut -f 2- | -		commander -xcd -p "$PWD>") +		commander -xc -p "$dir")  	[ "$file" ] || break  	[ ! -e "$file" ] && continue diff --git a/config/essentials/nvim/lua/user/packer.lua b/config/essentials/nvim/lua/user/packer.lua index 8091d85..edb763d 100644 --- a/config/essentials/nvim/lua/user/packer.lua +++ b/config/essentials/nvim/lua/user/packer.lua @@ -42,7 +42,7 @@ return require('packer').startup(function(use)  	use('ojroques/vim-oscyank', { branch = "main" })  	use("potamides/pantran.nvim")  	use('alx741/vinfo') -	use('sheerun/vim-polyglot') +	-- use('sheerun/vim-polyglot') TODO: fix error conflicting with telekasten  	-- use('github/copilot.vim')  	--  	use { diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 76ff87f..45f98e4 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -15,13 +15,61 @@ autoload -U select-word-style  autoload -z edit-command-line  zle -N edit-command-line  zstyle ':compinstall' filename '/home/aluc/.zshrc' + +### Completion +# cache +zstyle ':completion:*' use-cache on +zstyle ':completion:*' cache-path "$ZDOTDIR/zcompcache" + +# completers +zstyle ':completion:*' completer _extensions _complete _approximate + +# format +zstyle ':completion:*:*:*:*:corrections' format '%F{yellow}!- (%e) -!%f' +zstyle ':completion:*:*:*:*:descriptions' format '%F{blue}-- %D%d --%f' +zstyle ':completion:*:*:*:*:messages' format '%F{purple}-- %d --%f' +zstyle ':completion:*:*:*:*:warnings' format '%F{red}-- no matches found --%f' +zstyle ':completion:*:default' list-prompt '%S%M matches%s' +# show a 'ls -a' like outptut when listing files +zstyle ':completion:*' file-list all +zstyle ':completion:*:*:*:*:default' list-colors ${(s.:.)LS_COLORS} + +# Group completions by categories +zstyle ':completion:*' group-name '' +zstyle ':completion:*:*:-command-:*:*' group-order aliases builtins functions commands + +zstyle ':completion:*' squeeze-slashes true + +# Prefer completing for an option (think cd -) +zstyle ':completion:*' complete-options true + +# See ZSHCOMPWID "completion matching control" +zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' + +# keep prefix when completing +zstyle ':completion:*' keep-prefix true + +# ui  zstyle ':completion:*' menu select -autoload -Uz compinit +# Move around using h j k l in completion menu +zmodload zsh/complist +bindkey -M menuselect 'h' vi-backward-char +bindkey -M menuselect 'k' vi-up-line-or-history +bindkey -M menuselect 'j' vi-down-line-or-history +bindkey -M menuselect 'l' vi-forward-char +bindkey -M menuselect '^xg' clear-screen +# interactive mode +bindkey -M menuselect '^xi' vi-insert +bindkey -M menuselect '^xh' accept-and-hold                # Hold +bindkey -M menuselect '^xn' accept-and-infer-next-history  # Next +bindkey -M menuselect '^xu' undo                           # Undo + +autoload -Uz compinit; compinit +  autoload -Uz surround  zle -N delete-surround surround  zle -N add-surround surround  zle -N change-surround surround -compinit  # Source files  . $ZDOTDIR/functions.zsh diff --git a/config/wayland/waybar/config.jsonc b/config/wayland/waybar/config.jsonc index 1d795fc..9d60915 120000..100644 --- a/config/wayland/waybar/config.jsonc +++ b/config/wayland/waybar/config.jsonc @@ -1 +1,78 @@ -configs/hyprland.jsonc
\ No newline at end of file +{ +	"layer": "top", +	"modules-left": ["battery", "hyprland/workspaces", "mpd", "hyprland/window"], +	"modules-center": ["clock"], +	"modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "custom/bluetooth", "tray"], +	"mpd": { +		"format": "{artist} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})", +		"artist-len": 24, +		"format-disconnected": "s", +		"format-stopped": "", +		"state-icons": { +			"playing": "", +			"paused": "", +		}, +		"tooltip-format": "{songPosition}/{queueLength} ({volume}%)", +		"on-click": "mpc toggle", +		"on-scroll-up": "mpc volume +5", +		"on-scroll-down": "mpc volume -5", +	}, +	"battery": { +		"format-charging": " {capacity}%", +		"on-click": "mpower", +		"interval": 10, +	}, +	"hyprland/window": { +		"format": " {}", +		"separate-outputs": true, +	}, +	"pulseaudio": { +		"scroll-step": 1, +		"format": "{icon} {volume:3}%", +		"format-icons": { +			"default": ["", "", ""] +		}, +		"on-click": "pavucontrol", +	}, +	"temperature": { +		"interval": 3, +		"format": "{icon} {temperatureC}°C", +		"format-icons": { +			"default":["", "", "", "", ""] +		}, +	}, +	"custom/wireguard": { +		"exec": "ip addr show dev wg0", +		"format": "wg0", +		"restart-interval": 3, +	}, +	"network": { +		"format-wifi": " ", +		"tooltip-format-wifi": "{ifname} {essid}", +		"format-ethernet": "", +		"tooltip-format-ethernet": "{ifname} {ipaddr}", +		"format-disconnected": "", +	}, +	"cpu": { +		"format": " {usage:2}%", +		"interval": 3, +	}, +	"custom/memory": { +		"exec": "free -h | awk '(NR==2){ print $3 }'", +		"format": "{}", +		"restart-interval": 3, +	}, +	"clock": { +		"format": "{:%R}", +		"format-alt": "{:(%T) %A %d %B}", +		"interval": 1, +	}, +	"custom/bluetooth": { +		"exec": "bluetoothctl info", +		"format": "", +		"interval": 3, +	}, +	"tray": { +		"spacing": 5, +	} +} diff --git a/config/wayland/waybar/style.css b/config/wayland/waybar/style.css index 76f49ff..3b7b7f6 120000..100644 --- a/config/wayland/waybar/style.css +++ b/config/wayland/waybar/style.css @@ -1 +1,142 @@ -styles/nord.css
\ No newline at end of file +/* + ******************************************** + *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░* + *░░█▀█░█░░░█░█░█▀▀░░░█░█░█░░░▀█▀░█▀▄░█▀█░░* + *░░█▀▀░█░░░█░█░▀▀█░░░█░█░█░░░░█░░█▀▄░█▀█░░* + *░░▀░░░▀▀▀░▀▀▀░▀▀▀░░░▀▀▀░▀▀▀░░▀░░▀░▀░▀░▀░░* + *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░* + ******************************************** + */ +/* https://github.com/jakehamilton/dotfiles */ +/* Amazing I love it :))) */ + +* { +	border: none; +	border-radius: 0; +	font-family: JetBrains Mono; +	font-weight: bold; +	font-size: 14px; +	min-height: 24px; +} + +window#waybar { +	background: transparent; +} + +window#waybar.hidden { +	opacity: 0.2; +} + +window#waybar.termite #window, +window#waybar.Firefox #window, +window#waybar.Navigator #window, +window#waybar.PCSX2 #window { +    color: #2e3440; +	background: #e6e6e6; +} + +#mpd, #battery, +#network, #pulseaudio, #temperature, #cpu, #custom-memory { +	margin-left: 8px; +	padding-left: 16px; +	padding-right: 16px; +} + +#workspaces, #mpd, #battery, +#network, #pulseaudio, #temperature, #cpu, #custom-memory, #workspaces, #clock, #tray { +	margin-top: 4px; +	margin-bottom: 2px; +	transition: none; +	border-radius: 6px; +} + +#battery { +	color: #b48ead; +	background: #4c566a; +} + +#workspaces { +	margin-left: 12px; +	background: #2e3440; +} + +#workspaces button { +	transition: none; +	color: #d8dee9; +	background: transparent; +	font-size: 16px; +} + +#workspaces button.active { +	color: #a3be8c; +    text-shadow: 0px 0px 1px #a3be8c; +} + +#workspaces button:hover { +	transition: none; +	color: #d08770; +} + +#mpd { +	color: #2e3440; +	background: #88c0d0; +} + +#mpd.disconnected, +#mpd.stopped { +	color: #d8dee9; +	background: #2e3440; +} + +#window { +	color: #88c0d0; +} + +#network { +	color: #2e3440; +	background: #5e81ac; +} + +#pulseaudio { +	color: #2e3440; +	background: #b48ead; +} + +#temperature { +	color: #2e3440; +	background: #d08770; +} + +#cpu { +	color: #2e3440; +	background: #ebcb8b; +} + +#custom-memory { +	color: #2e3440; +	background: #a3be8c; +} + +#clock { +	margin-left: 8px; +	margin-right: 12px; +	padding-left: 16px; +	padding-right: 16px; +	color: #d8dee9; +	background: #2e3440; +} + +#tray { +	margin-right: 12px; +	color: #d8dee9; +	background: transparent; +} + +#tray > .needs-attention { +    -gtk-icon-effect: highlight; +    background-color: #bf616a; +} + +#tray > .passive { +    -gtk-icon-effect: dim; +} | 
