update various stuff

This commit is contained in:
Never Gude 2026-02-17 14:00:48 +01:00
parent 261c8ccb21
commit 07ffb6c747
4 changed files with 81 additions and 99 deletions

View file

@ -6,10 +6,22 @@ if status is-interactive
abbr --add tr gio trash abbr --add tr gio trash
abbr --add --set-cursor tldr curl cheat.sh/% abbr --add --set-cursor tldr curl cheat.sh/%
function alacritty function copy --description 'Copy to clipboard'
fish_clipboard_copy
end
function paste --description 'Paste from clipboard'
fish_clipboard_paste
end
function alacritty --description 'Create new Alacritty window'
command alacritty msg create-window $argv command alacritty msg create-window $argv
end end
function vman --description 'Uses Neovim as a manpager'
man $argv | nvim +Man!
end
function mvi --description 'Launches \d mpv with mvi configuration' function mvi --description 'Launches \d mpv with mvi configuration'
mpv --config-dir=$HOME/.config/mvi/ $argv mpv --config-dir=$HOME/.config/mvi/ $argv
end end

View file

@ -1,7 +1,7 @@
# This file contains fish universal variable definitions. # This file contains fish universal variable definitions.
# VERSION: 3.0 # VERSION: 3.0
SETUVAR --export EDITOR:nvim SETUVAR --export EDITOR:nvim
SETUVAR LESS:\x1d SETUVAR LESS:RAW\x2dCONTROL\x2dCHARS
SETUVAR --export QT_QPA_PLATFORMTHEME:qt6ct SETUVAR --export QT_QPA_PLATFORMTHEME:qt6ct
SETUVAR __fish_initialized:3800 SETUVAR __fish_initialized:3800
SETUVAR fish_color_autosuggestion:white SETUVAR fish_color_autosuggestion:white

View file

@ -1,104 +1,74 @@
{ {
"layer": "top", "layer": "top",
"modules-left": ["niri/workspaces"],
"modules-center": ["niri/window"],
"modules-right": ["bluetooth", "network", "wireplumber#source", "wireplumber#sink", "battery", "clock"],
"modules-left": ["niri/workspaces"], "niri/window": {
"modules-center": ["niri/window"], "max-length": 100
"modules-right": ["bluetooth", "network", "wireplumber#source", "wireplumber#sink", "battery", "clock"], },
"niri/window": { "bluetooth": {
"max-length": 100 // "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
}, "format": "",
"format-disabled": "󰂲", // an empty format will hide the module
"format-connected": "󰂯",
"tooltip-format": "{controller_alias}\t{controller_address}",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}"
},
"idle_inhibitor": { "network": {
"format": "{icon}", "interface": "wlp2s0",
"format-icons": { "format": "{ifname}",
"activated": "󰅶", "format-icons": ["󰤟", "󰤢", "󰤥", "󰤨"],
"deactivated": "󰾪" "format-wifi": "{icon}",
}, "format-ethernet": "󰈁",
"min-length": 2, "format-disconnected": "", //An empty format will hide the module.
"tooltip": false "tooltip-format": "{ifname}",
}, "tooltip-format-wifi": "󰖩 {essid} ({signalStrength}%)",
"tooltip-format-ethernet": "󰈁 {ifname}",
"tooltip-format-disconnected": "Disconnected"
},
"mpris": { "wireplumber#sink": {
"format": "{player_icon} {dynamic}", "format": "{icon}",
"format-paused": "{status_icon} <i>{dynamic}</i>", "format-muted": "󰖁",
"player-icons": { "format-icons": ["󰕿", "󰖀", "󰕾"],
"default": "󰐊" "tooltip-format": "{node_name} ({volume}%)",
}, "on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"status-icons": { "scroll-step": 5
"paused": "󰏤" },
},
"ignored-players": ["firefox"]
},
"bluetooth": { "wireplumber#source": {
// "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system "node-type": "Audio/Source",
"format": "", "format": "󰍬",
"format-disabled": "󰂲", // an empty format will hide the module "format-muted": "󰍭",
"format-connected": "󰂯", "tooltip-format": "{node_name} ({volume}%)",
"tooltip-format": "{controller_alias}\t{controller_address}", "on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}", "scroll-step": 5
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", },
"min-length": 2
},
"network": { "battery": {
"interface": "wlp2s0", "interval": 60,
"format": "{ifname}", "states": {
"format-icons": ["󰤟", "󰤢", "󰤥", "󰤨"], "warning": 30,
"format-wifi": "{icon}", "critical": 15
"format-ethernet": "󰈁", },
"format-disconnected": "", //An empty format will hide the module. "events": {
"tooltip-format": "{ifname}", "on-discharging-warning": "notify-send -u normal 'Low Battery'",
"tooltip-format-wifi": "󰖩 {essid} ({signalStrength}%)", "on-discharging-critical": "notify-send -u critical 'Very Low Battery'"
"tooltip-format-ethernet": "󰈁 {ifname}", },
"tooltip-format-disconnected": "Disconnected", "format": "{icon}",
"min-length": 2 "format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
}, "format-charging": "󰂄",
"tooltip-format": "{time} ({capacity}%)"
},
"wireplumber#sink": { "clock": {
"format": "{icon}", "format-alt": "{:%a, %d. %b %H:%M}",
"format-muted": "󰖁", "tooltip": false
"format-icons": ["󰕿", "󰖀", "󰕾"], }
"tooltip-format": "{node_name} ({volume}%)",
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"scroll-step": 5,
"min-length": 2
},
"wireplumber#source": {
"node-type": "Audio/Source",
"format": "󰍬",
"format-muted": "󰍭",
"tooltip-format": "{node_name} ({volume}%)",
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
"scroll-step": 5,
"min-length": 2
},
"battery": {
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"events": {
"on-discharging-warning": "notify-send -u normal 'Low Battery'",
"on-discharging-critical": "notify-send -u critical 'Very Low Battery'"
},
"format": "{icon}",
"format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"format-charging": "󰂄",
"tooltip-format": "{time} ({capacity}%)",
"min-length": 2
},
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}",
"tooltip": false
}
} }

View file

@ -83,7 +83,7 @@ function audio_sink
end end
function network_connection function network_connection
set options (nmcli --terse --mode multiline connection show | grep "NAME:" | string replace "NAME:" "" | string split "\n") set options (nmcli --terse --fields name connection show)
set input (menu $options) set input (menu $options)
notify-send "Connect to network $input" (nmcli connection up $input) notify-send "Connect to network $input" (nmcli connection up $input)