added remmina, changes in niri
This commit is contained in:
12
bash/.bashrc
12
bash/.bashrc
@ -88,9 +88,10 @@ fi
|
|||||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
# some more ls aliases
|
# some more ls aliases
|
||||||
alias ll='ls -alF'
|
alias ls='exa'
|
||||||
alias la='ls -A'
|
alias ll='exa -alF'
|
||||||
alias l='ls -CF'
|
alias la='exa -A'
|
||||||
|
alias l='exa -F'
|
||||||
|
|
||||||
# Add an "alert" alias for long running commands. Use like so:
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
# sleep 10; alert
|
# sleep 10; alert
|
||||||
@ -125,8 +126,9 @@ eval "$(zoxide init bash)"
|
|||||||
|
|
||||||
source ~/.dotfiles/nfrc.sh
|
source ~/.dotfiles/nfrc.sh
|
||||||
|
|
||||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
|
||||||
|
|
||||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||||
|
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
|
||||||
|
|
||||||
|
export EDITOR=helix
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
cmd="fuzzel --minimal-lines --dmenu --hide-prompt "
|
cmd="fuzzel --minimal-lines --dmenu --hide-prompt "
|
||||||
|
|
||||||
action=$(printf "Sleep\0icon\x1fsystem-suspend\nReboot\0icon\x1fsystem-reboot\nShutdown\0icon\x1fsystem-shutdown\nExit Niri\0icon\x1fsystem-log-out\nCancel" | $cmd --index)
|
action=$(printf "Sleep\0icon\x1fnfrc-suspend\nReboot\0icon\x1fnfrc-reboot\nShutdown\0icon\x1fnfrc-poweroff\nExit Niri\0icon\x1fnfrc-logout\nCancel" | $cmd --index)
|
||||||
|
|
||||||
command=""
|
command=""
|
||||||
|
|
||||||
|
|||||||
41
bin/fuzzel-remmina
Executable file
41
bin/fuzzel-remmina
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
read -r -d '' awkscript <<- 'EOF'
|
||||||
|
{
|
||||||
|
if ($1 == "name") {
|
||||||
|
print FILENAME":"$2;
|
||||||
|
}
|
||||||
|
if ($1 == "protocol") {
|
||||||
|
print "("$2")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
getentry() {
|
||||||
|
awk -F'=' "$awkscript" "$1" | paste -sd' '
|
||||||
|
}
|
||||||
|
|
||||||
|
export awkscript
|
||||||
|
export -f getentry
|
||||||
|
|
||||||
|
groups=$(ls -1 ~/.local/share/remmina/ | cut -d_ -f1 | uniq)
|
||||||
|
groupcnt=$(wc -l <<<$groups)
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
if [ "$groupcnt" -eq 1 ]; then
|
||||||
|
group=$groups
|
||||||
|
else
|
||||||
|
group=$(echo -e "$groups" | fuzzel --dmenu)
|
||||||
|
fi
|
||||||
|
[ -z "$group" ] && exit
|
||||||
|
|
||||||
|
entries=$(find ~/.local/share/remmina/ -name "$group*" -type f -exec bash -c "getentry {}" \; )
|
||||||
|
#echo -e "$entries"
|
||||||
|
|
||||||
|
fuzcmd="fuzzel --dmenu --terminal='' --with-nth=2 --accept-nth=1 --nth-delimiter=: --hide-prompt"
|
||||||
|
selected=$(echo -e "$entries" | $fuzcmd 2>/dev/null | tail -n1)
|
||||||
|
[[ $selected =~ delim ]] && [ "$groupcnt" -gt 1 ] && continue
|
||||||
|
break
|
||||||
|
done
|
||||||
|
|
||||||
|
remmina -c "$selected"
|
||||||
@ -14,9 +14,11 @@ action=1
|
|||||||
case "$action" in
|
case "$action" in
|
||||||
0)
|
0)
|
||||||
echo '{"text": "connecting...", "class":"action"}'
|
echo '{"text": "connecting...", "class":"action"}'
|
||||||
endpoint=$(tailscale status | grep "exit node" | awk '{print $2}' | $cmd)
|
items=$(tailscale status | grep "exit node" | grep -v "offline" | awk '{print $2 " (" $1 ")"}')
|
||||||
|
|
||||||
|
endpoint=$(echo -e "$items" | $cmd)
|
||||||
[ -z "$endpoint" ] && exit
|
[ -z "$endpoint" ] && exit
|
||||||
tailscale set --exit-node="$endpoint"
|
tailscale set --exit-node="${endpoint% *}"
|
||||||
tailscale up
|
tailscale up
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
|||||||
@ -5,11 +5,21 @@ background_opacity 0.9
|
|||||||
background_blur 1
|
background_blur 1
|
||||||
|
|
||||||
window_margin_width 10
|
window_margin_width 10
|
||||||
|
cursor_trail 20
|
||||||
|
cursor_trail_decay 0.1 0.5
|
||||||
|
cursor_trail_start_threshold 0
|
||||||
|
|
||||||
# BEGIN_KITTY_FONTS
|
# BEGIN_KITTY_FONTS
|
||||||
font_family family="VictorMono Nerd Font Mono"
|
font_family family='Iosevka Nerd Font Mono'
|
||||||
bold_font auto
|
bold_font auto
|
||||||
italic_font auto
|
italic_font auto
|
||||||
bold_italic_font auto
|
bold_italic_font auto
|
||||||
# END_KITTY_FONTS
|
# END_KITTY_FONTS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# BEGIN_KITTY_THEME
|
||||||
|
# Noctalia
|
||||||
|
include current-theme.conf
|
||||||
|
# END_KITTY_THEME
|
||||||
2
nfrc.sh
2
nfrc.sh
@ -1,6 +1,6 @@
|
|||||||
eval "$(fzf --bash)"
|
eval "$(fzf --bash)"
|
||||||
|
|
||||||
FMENU="fzf --header=$(basename "$0") \
|
FMENU="fzf \
|
||||||
--layout=reverse \
|
--layout=reverse \
|
||||||
--exact \
|
--exact \
|
||||||
--border=bold \
|
--border=bold \
|
||||||
|
|||||||
@ -84,17 +84,25 @@ output "DP-2" {
|
|||||||
// off //DP-2
|
// off //DP-2
|
||||||
mode "1920x1080"
|
mode "1920x1080"
|
||||||
scale 1.25
|
scale 1.25
|
||||||
transform "normal"
|
// transform "270"
|
||||||
position x=0 y=1080
|
position x=0 y=1080
|
||||||
}
|
}
|
||||||
|
output "DP-1" {
|
||||||
output "HDMI-A-1" {
|
// off //DP-2
|
||||||
// off //HDMI-A-1
|
|
||||||
mode "1920x1080"
|
mode "1920x1080"
|
||||||
|
scale 1
|
||||||
|
// transform "270"
|
||||||
position x=0 y=0
|
position x=0 y=0
|
||||||
}
|
}
|
||||||
|
|
||||||
output "HDMI-A-2" {
|
output "HDMI-A-2" {
|
||||||
|
// off //HDMI-A-1
|
||||||
|
mode "1920x1080"
|
||||||
|
scale 1
|
||||||
|
position x=0 y=0
|
||||||
|
}
|
||||||
|
|
||||||
|
output "HDMI-A-1" {
|
||||||
// off //HDMI-A-2
|
// off //HDMI-A-2
|
||||||
mode "2048x1152"
|
mode "2048x1152"
|
||||||
position x=-2048 y=0
|
position x=-2048 y=0
|
||||||
@ -106,7 +114,7 @@ output "HDMI-A-2" {
|
|||||||
// https://yalter.github.io/niri/Configuration:-Layout
|
// https://yalter.github.io/niri/Configuration:-Layout
|
||||||
layout {
|
layout {
|
||||||
// Set gaps around windows in logical pixels.
|
// Set gaps around windows in logical pixels.
|
||||||
gaps 12
|
gaps 16
|
||||||
|
|
||||||
// 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
|
||||||
@ -168,7 +176,7 @@ layout {
|
|||||||
//
|
//
|
||||||
// The focus ring only draws around the active window, so the only place
|
// The focus ring only draws around the active window, so the only place
|
||||||
// where you can see its inactive-color is on other monitors.
|
// where you can see its inactive-color is on other monitors.
|
||||||
inactive-color "#505050"
|
inactive-color "#888"
|
||||||
|
|
||||||
// You can also use gradients. They take precedence over solid colors.
|
// You can also use gradients. They take precedence over solid colors.
|
||||||
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
||||||
@ -193,7 +201,7 @@ layout {
|
|||||||
off
|
off
|
||||||
|
|
||||||
width 4
|
width 4
|
||||||
active-color "#ffc87f"
|
active-color "#ffffff"
|
||||||
inactive-color "#505050"
|
inactive-color "#505050"
|
||||||
|
|
||||||
// Color of the border around windows that request your attention.
|
// Color of the border around windows that request your attention.
|
||||||
@ -207,6 +215,15 @@ layout {
|
|||||||
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tab-indicator {
|
||||||
|
width 10
|
||||||
|
// place-within-column
|
||||||
|
corner-radius 20
|
||||||
|
gaps-between-tabs 20
|
||||||
|
position "left"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// You can enable drop shadows for windows.
|
// You can enable drop shadows for windows.
|
||||||
shadow {
|
shadow {
|
||||||
// Uncomment the next line to enable shadows.
|
// Uncomment the next line to enable shadows.
|
||||||
@ -241,7 +258,7 @@ layout {
|
|||||||
offset x=0 y=5
|
offset x=0 y=5
|
||||||
|
|
||||||
// You can also change the shadow color and opacity.
|
// You can also change the shadow color and opacity.
|
||||||
color "#0007"
|
color "#000f"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
||||||
@ -250,8 +267,8 @@ layout {
|
|||||||
// 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 {
|
struts {
|
||||||
left 24
|
left 32
|
||||||
right 24
|
right 32
|
||||||
// top 64
|
// top 64
|
||||||
// bottom 64
|
// bottom 64
|
||||||
}
|
}
|
||||||
@ -263,13 +280,15 @@ layout {
|
|||||||
// See the binds section below for more spawn examples.
|
// See the binds section below for more spawn examples.
|
||||||
|
|
||||||
// This line starts waybar, a commonly used bar for Wayland compositors.
|
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||||
spawn-at-startup "waybar"
|
//spawn-at-startup "waybar"
|
||||||
|
spawn-at-startup "qs" "-c" "noctalia-shell"
|
||||||
spawn-at-startup "swww-daemon"
|
spawn-at-startup "swww-daemon"
|
||||||
spawn-at-startup "gsettings set org.gnome.desktop.interface gtk-theme 'Arc-Dark'"
|
// spawn-at-startup "gsettings set org.gnome.desktop.interface gtk-theme 'Arc-Dark'"
|
||||||
spawn-at-startup "gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'"
|
// spawn-at-startup "gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'"
|
||||||
spawn-at-startup "gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark'"
|
// spawn-at-startup "gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark'"
|
||||||
spawn-at-startup "swayidle" "-w"
|
spawn-at-startup "swayidle" "-w"
|
||||||
spawn-at-startup "systemctl" "--user" "start" "plasma-polkit-agent.service"
|
spawn-at-startup "systemctl" "--user" "start" "plasma-polkit-agent.service"
|
||||||
|
spawn-at-startup "xhost" "+local:"
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
QT_QPA_PLATFORMTHEME "qt6ct"
|
QT_QPA_PLATFORMTHEME "qt6ct"
|
||||||
@ -285,7 +304,7 @@ xwayland-satellite {
|
|||||||
|
|
||||||
hotkey-overlay {
|
hotkey-overlay {
|
||||||
// Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
|
// Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
|
||||||
// skip-at-startup
|
skip-at-startup
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.
|
||||||
@ -352,7 +371,7 @@ window-rule {
|
|||||||
// Example: enable rounded corners for all windows.
|
// Example: enable rounded corners for all windows.
|
||||||
// (This example rule is commented out with a "/-" in front.)
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
window-rule {
|
window-rule {
|
||||||
geometry-corner-radius 0
|
geometry-corner-radius 20
|
||||||
clip-to-geometry true
|
clip-to-geometry true
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -373,10 +392,17 @@ binds {
|
|||||||
|
|
||||||
|
|
||||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
Mod+Return hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; }
|
Mod+D hotkey-overlay-title="Noctalia launcher" { spawn "qs" "-c" "noctalia-shell" "ipc" "call" "launcher" "toggle"; }
|
||||||
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel" "--lines=10"; }
|
Mod+S { spawn "qs" "-c" "noctalia-shell" "ipc" "call" "controlCenter" "toggle"; }
|
||||||
|
Mod+V { spawn "qs" "-c" "noctalia-shell" "ipc" "call" "launcher" "clipboard"; }
|
||||||
|
Mod+T { spawn "kitty" "--single-instance" "-e" "tsui"; }
|
||||||
|
|
||||||
|
Mod+Return hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty" "--single-instance"; }
|
||||||
|
//Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel" "--lines=10"; }
|
||||||
Mod+E hotkey-overlay-title="Nemo" { spawn "nemo"; }
|
Mod+E hotkey-overlay-title="Nemo" { spawn "nemo"; }
|
||||||
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "qs" "-c" "noctalia-shell" "ipc" "call" "lockScreen" "lock"; }
|
||||||
|
Super+Shift+C hotkey-overlay-title="Remmina" { spawn "~/.dotfiles/bin/fuzzel-remmina"; }
|
||||||
|
Super+Shift+S hotkey-overlay-title="Fast ssh" { spawn "~/.local/bin/fuzzel-ssh"; }
|
||||||
|
|
||||||
|
|
||||||
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
|
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
|
||||||
@ -401,7 +427,7 @@ binds {
|
|||||||
// Open/close the Overview: a zoomed-out view of workspaces and windows.
|
// Open/close the Overview: a zoomed-out view of workspaces and windows.
|
||||||
// You can also move the mouse into the top-left hot corner,
|
// You can also move the mouse into the top-left hot corner,
|
||||||
// or do a four-finger swipe up on a touchpad.
|
// or do a four-finger swipe up on a touchpad.
|
||||||
Mod+O repeat=false { toggle-overview; }
|
Mod+Tab repeat=false { toggle-overview; }
|
||||||
|
|
||||||
Mod+Q repeat=false { close-window; }
|
Mod+Q repeat=false { close-window; }
|
||||||
|
|
||||||
@ -588,7 +614,7 @@ binds {
|
|||||||
Mod+Shift+Equal { set-window-height "+10%"; }
|
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||||
|
|
||||||
// Move the focused window between the floating and the tiling layout.
|
// Move the focused window between the floating and the tiling layout.
|
||||||
Mod+V { toggle-window-floating; }
|
Mod+Alt+V { toggle-window-floating; }
|
||||||
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||||
|
|
||||||
// Toggle tabbed column display mode.
|
// Toggle tabbed column display mode.
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
"height": 16,
|
"height": 16,
|
||||||
"modules-left": ["niri/workspaces", "niri/window"],
|
"modules-left": ["group/workspace"],
|
||||||
"modules-center": ["custom/media"],
|
"modules-center": [],
|
||||||
"modules-right": ["tray", "niri/language", "network", "custom/tscale", "pulseaudio", "clock", "custom/quit"],
|
"modules-right": ["group/media", "tray", "niri/language", "group/net", "pulseaudio", "privacy", "clock", "custom/quit"],
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": "{:%H:%M}",
|
"format": "{:%H:%M}",
|
||||||
"format-alt": "{:%a %b %d}",
|
"format-alt": "{:%a %b %d}",
|
||||||
@ -13,6 +13,47 @@
|
|||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
|
"custom/musicplay": {
|
||||||
|
"format": "{}",
|
||||||
|
"interval": 1,
|
||||||
|
"exec": "$HOME/.config/waybar/get_media.sh play",
|
||||||
|
"max-length": 40,
|
||||||
|
"on-click": "playerctl play-pause"
|
||||||
|
},
|
||||||
|
"custom/musicnext": {
|
||||||
|
"format": "{}",
|
||||||
|
"exec": "$HOME/.config/waybar/get_media.sh next",
|
||||||
|
"max-length": 40,
|
||||||
|
"on-click": "playerctl next"
|
||||||
|
},
|
||||||
|
"custom/musicprev": {
|
||||||
|
"format": "{}",
|
||||||
|
"exec": "$HOME/.config/waybar/get_media.sh prev",
|
||||||
|
"max-length": 40,
|
||||||
|
"on-click": "playerctl previous"
|
||||||
|
},
|
||||||
|
"custom/musicname": {
|
||||||
|
"format": "{}",
|
||||||
|
"interval": 1,
|
||||||
|
"exec": "$HOME/.config/waybar/get_media.sh name",
|
||||||
|
"max-length": 40,
|
||||||
|
},
|
||||||
|
"group/media": {
|
||||||
|
"orientation": "inherit",
|
||||||
|
"drawer": {
|
||||||
|
"transition-duration": 200,
|
||||||
|
"children-class": "not-med"
|
||||||
|
},
|
||||||
|
"modules": [
|
||||||
|
"custom/musicplay", "custom/musicprev", "custom/musicname", "custom/musicnext"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"custom/tscale": {
|
||||||
|
"interval": 5,
|
||||||
|
"exec": "~/.config/waybar/tscale",
|
||||||
|
"return-type": "json",
|
||||||
|
"on-click": "~/.dotfiles/bin/fuzzel-tscale"
|
||||||
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"format": "{ifname}",
|
"format": "{ifname}",
|
||||||
"format-wifi": " {essid}",
|
"format-wifi": " {essid}",
|
||||||
@ -21,27 +62,40 @@
|
|||||||
"tooltip-format-wifi": "{signalStrength}%",
|
"tooltip-format-wifi": "{signalStrength}%",
|
||||||
"max-length": 20
|
"max-length": 20
|
||||||
},
|
},
|
||||||
"custom/media": {
|
|
||||||
"format": "{}",
|
|
||||||
"interval": 1,
|
|
||||||
"exec": "$HOME/.config/waybar/get_media.sh",
|
|
||||||
"max-length": 60,
|
|
||||||
"on-click": "playerctl play-pause"
|
|
||||||
},
|
|
||||||
"custom/tscale": {
|
|
||||||
"interval": 5,
|
|
||||||
"exec": "~/.config/waybar/tscale",
|
|
||||||
"return-type": "json",
|
|
||||||
"on-click": "~/.dotfiles/bin/fuzzel-tscale"
|
|
||||||
},
|
|
||||||
"custom/keyboard": {
|
"custom/keyboard": {
|
||||||
"format": " {}",
|
"format": " {}",
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"exec": "$HOME/.config/waybar/get_kbdlayout.sh"
|
"exec": "$HOME/.config/waybar/get_kbdlayout.sh"
|
||||||
},
|
},
|
||||||
|
"group/net": {
|
||||||
|
"orientation": "inherit",
|
||||||
|
"drawer": {
|
||||||
|
"transition-duration": 200,
|
||||||
|
"children-class": "not-net"
|
||||||
|
},
|
||||||
|
"modules": [
|
||||||
|
"network", "custom/tscale"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"group/workspace": {
|
||||||
|
"orientation": "inherit",
|
||||||
|
"drawer": {
|
||||||
|
"transition-duration": 200,
|
||||||
|
"children-class": "workspace"
|
||||||
|
},
|
||||||
|
"modules": ["niri/workspaces", "wlr/taskbar"]
|
||||||
|
},
|
||||||
"niri/language": {
|
"niri/language": {
|
||||||
"format": "{short}"
|
"format": "{short}"
|
||||||
},
|
},
|
||||||
|
"wlr/taskbar": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"icon-theme": "Papirus",
|
||||||
|
//"all-outputs": true,
|
||||||
|
"on-click": "activate",
|
||||||
|
"on-click-middle": "close"
|
||||||
|
},
|
||||||
|
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "{icon} {volume}%",
|
"format": "{icon} {volume}%",
|
||||||
|
|||||||
@ -1,15 +1,28 @@
|
|||||||
media=$(playerctl metadata -f "({{playerName}}) {{artist}} - {{title}}" 2>/dev/null)
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
media=$(playerctl metadata -f "{{artist}} - {{title}}")
|
||||||
player_status=$(playerctl status)
|
player_status=$(playerctl status)
|
||||||
|
|
||||||
if [[ $player_status = "Playing" ]]
|
|
||||||
then
|
|
||||||
song_status=''
|
|
||||||
elif [[ $player_status = "Paused" ]]
|
|
||||||
then
|
|
||||||
song_status=''
|
|
||||||
else
|
|
||||||
song_status=''
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -z "$media" ] && echo -e "$song_status"
|
case "$1" in
|
||||||
[ ! -z "$media" ] && echo -e "$song_status $media"
|
"name")
|
||||||
|
[ -z "$media" ] || echo -e "$media"
|
||||||
|
;;
|
||||||
|
"play")
|
||||||
|
if [[ "$player_status" = "Playing" ]]
|
||||||
|
then
|
||||||
|
echo -e ''
|
||||||
|
elif [[ "$player_status" = "Paused" ]]
|
||||||
|
then
|
||||||
|
echo -e ''
|
||||||
|
else
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"next")
|
||||||
|
[ "$player_status" = "Stopped" ] || echo -e ""
|
||||||
|
;;
|
||||||
|
"prev")
|
||||||
|
[ "$player_status" = "Stopped" ] || echo -e ""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|||||||
@ -74,14 +74,19 @@ window#waybar {
|
|||||||
color: #c5ffc6;
|
color: #c5ffc6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#workspace {
|
||||||
|
margin: 3px;
|
||||||
|
border: 1px solid @cl_border;
|
||||||
|
}
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
background: @bg_block;
|
background: @bg_block;
|
||||||
color: @fg_main;
|
color: @fg_main;
|
||||||
margin: 3px 0px 3px 3px;
|
/* margin: 3px 0px 3px 3px; */
|
||||||
border-top: 1px solid @cl_border;
|
/* border-top: 1px solid @cl_border; */
|
||||||
border-bottom: 1px solid @cl_border;
|
/* border-bottom: 1px solid @cl_border; */
|
||||||
border-left: 1px solid @cl_border;
|
/* border-left: 1px solid @cl_border; */
|
||||||
|
/* border-right: 1px solid @cl_border; */
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
@ -102,6 +107,7 @@ window#waybar {
|
|||||||
border-top: 1px solid @cl_border;
|
border-top: 1px solid @cl_border;
|
||||||
border-bottom: 1px solid @cl_border;
|
border-bottom: 1px solid @cl_border;
|
||||||
border-right: 1px solid @cl_border;
|
border-right: 1px solid @cl_border;
|
||||||
|
border-left: none;
|
||||||
}
|
}
|
||||||
window#waybar.empty #window {
|
window#waybar.empty #window {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
@ -116,7 +122,39 @@ window#waybar.empty #window {
|
|||||||
border: 1px solid @cl_border;
|
border: 1px solid @cl_border;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-media {
|
#taskbar {
|
||||||
|
background: @bg_block;
|
||||||
|
color: @fg_main;
|
||||||
|
/* margin: 3px 3px 3px 0px; */
|
||||||
|
padding: 0;
|
||||||
|
border-left: none;
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#taskbar button {
|
||||||
|
padding: 3px;
|
||||||
|
padding-left: 7px;
|
||||||
|
margin: 0px;
|
||||||
|
border-radius: 0;
|
||||||
|
border-top: 0px;
|
||||||
|
border-bottom: 0px;
|
||||||
|
border-left: 0px;
|
||||||
|
border-right: 0px;
|
||||||
|
}
|
||||||
|
#taskbar button.active {
|
||||||
|
background-color: #606060;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#privacy {
|
||||||
|
margin: 3px 3px 3px 3px;
|
||||||
|
padding: 5px 7px 5px 7px;
|
||||||
|
background-color: @bg_block;
|
||||||
|
border: 1px solid @cl_border;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media {
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
padding: 5px 7px 5px 7px;
|
padding: 5px 7px 5px 7px;
|
||||||
background: @bg_block;
|
background: @bg_block;
|
||||||
@ -126,6 +164,11 @@ window#waybar.empty #window {
|
|||||||
border-left: 1px solid @cl_border;
|
border-left: 1px solid @cl_border;
|
||||||
border-right: 1px solid @cl_border;
|
border-right: 1px solid @cl_border;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#media * {
|
||||||
|
margin: 0 3px;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
margin: 3px 3px 3px 0px;
|
margin: 3px 3px 3px 0px;
|
||||||
padding: 5px 7px 5px 5px;
|
padding: 5px 7px 5px 5px;
|
||||||
@ -145,3 +188,5 @@ window#waybar.empty #window {
|
|||||||
border-left: 0px solid rgba(0,0,0,0);
|
border-left: 0px solid rgba(0,0,0,0);
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user