Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b017293c6d | ||
|
|
fe4a93818a | ||
|
|
af08ce0334 | ||
|
|
de2e0bbbc2 | ||
|
|
c5f14c3d83 | ||
|
|
1d749b2446 | ||
|
|
fb17abf8d5 | ||
|
|
3556bcf33d | ||
|
|
ecbce66724 | ||
|
|
946ca9b43d |
No files matched your search
@@ -5,6 +5,7 @@
|
||||
|
||||
!betterlockscreen/
|
||||
!bspwm/
|
||||
!custom_icons/
|
||||
!dotdot/
|
||||
!i3/
|
||||
!mpd/
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
+2
-2
@@ -25,8 +25,8 @@ xss-lock --transfer-sleep-lock -- i3lock-fancy --nofork &
|
||||
nextcloud --background &
|
||||
|
||||
# Bluetooth utils
|
||||
# blueberry-tray &
|
||||
blueman-applet &
|
||||
blueberry-tray &
|
||||
# blueman-applet &
|
||||
|
||||
# Auto-xrandr
|
||||
x-on-resize -c ~/.config/utils/auto_xrandr.sh &
|
||||
|
||||
+39
-5
@@ -6,8 +6,7 @@ unsetopt beep
|
||||
bindkey -v
|
||||
|
||||
# End of lines configured by zsh-newuser-install
|
||||
# The following lines were added by compinstall
|
||||
zstyle :compinstall filename '/home/dqnid/.zshrc'
|
||||
# The following lines were added by compinstall zstyle :compinstall filename '/home/dqnid/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
@@ -21,18 +20,49 @@ export TERMINAL=/usr/local/bin/st
|
||||
|
||||
# Aliases
|
||||
alias r=ranger
|
||||
alias v=nvim
|
||||
alias sv="sudo nvim"
|
||||
alias n="nnn -e"
|
||||
alias gs="git status --short"
|
||||
alias gl="git log --graph --oneline --all"
|
||||
alias nvm_init='[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"'
|
||||
alias ls=lsd
|
||||
alias zj=zellij
|
||||
alias hx=helix
|
||||
|
||||
v() {
|
||||
kitten @ set-spacing margin=4
|
||||
nvim $@
|
||||
kitten @ set-spacing margin=20
|
||||
}
|
||||
|
||||
# nnn
|
||||
export NNN_OPTS="de" # d for details, e for pipe params, H to auto-display hidden files
|
||||
export LC_COLLATE="C" # hidden files on top
|
||||
export NNN_FIFO="/tmp/nnn.fifo" # temporary buffer for the previews
|
||||
export NNN_FCOLORS="AAAAE631BBBBCCCCDDDD9999"
|
||||
#AAAAE6
|
||||
#31BBBB
|
||||
#CCCCDD
|
||||
#DD9999
|
||||
export NNN_PLUG='p:preview-tui'
|
||||
export SPLIT='v'
|
||||
n () # to cd on quit
|
||||
{
|
||||
if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then
|
||||
echo "nnn is already running"
|
||||
return
|
||||
fi
|
||||
export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
|
||||
nnn "$@"
|
||||
if [ -f "$NNN_TMPFILE" ]; then
|
||||
. "$NNN_TMPFILE"
|
||||
rm -f "$NNN_TMPFILE" > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
eval "$(zoxide init zsh)"
|
||||
|
||||
# Yazi with cd on quit
|
||||
function y() {
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
command yazi "$@" --cwd-file="$tmp"
|
||||
@@ -44,7 +74,7 @@ function y() {
|
||||
export EDITOR=nvim
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
# Slows start time
|
||||
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
|
||||
# bun completions
|
||||
[ -s "/home/dqnid/.bun/_bun" ] && source "/home/dqnid/.bun/_bun"
|
||||
@@ -53,3 +83,7 @@ export NVM_DIR="$HOME/.nvm"
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
export PATH="$HOME/.config/utils/:$PATH"
|
||||
|
||||
# yarn
|
||||
export PATH="$(yarn global bin):$PATH"
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
@@ -5,8 +5,8 @@ default_border pixel 0
|
||||
default_floating_border normal
|
||||
smart_gaps inverse_outer
|
||||
|
||||
for_window [class="^.*"] border pixel 0
|
||||
gaps inner 28
|
||||
# for_window [class="^.*"] border pixel 0
|
||||
gaps inner 30
|
||||
gaps outer 0
|
||||
|
||||
popup_during_fullscreen smart
|
||||
@@ -16,6 +16,11 @@ for_window [title="Pomodoro Timer"] floating enable
|
||||
for_window [title="Calendar02042023"] floating enable
|
||||
for_window [title="Music "] floating enable
|
||||
for_window [instance=rofi] sticky enable
|
||||
for_window [instance=st] floating enable
|
||||
for_window [instance=kitty] floating enable
|
||||
for_window [instance=kitty] resize set 800 600
|
||||
for_window [instance=steam] floating disable
|
||||
for_window [instance=blueberry] floating enable
|
||||
for_window [instance=eww] border pixel 0
|
||||
#for_window [class="matplotlib"] floating enable
|
||||
#for_window [class="eww"] floating enable
|
||||
@@ -153,18 +158,20 @@ bindsym $mod+Shift+r restart
|
||||
#bindsym $mod+Shift+F12 exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
#Colores
|
||||
set $black #1c1f20
|
||||
set $grey #dad0b6
|
||||
set $fg-alt #888888
|
||||
set $red #c1121f
|
||||
set $dark-blue #dcb476
|
||||
set $bg #262626
|
||||
set $bg-alt #222222
|
||||
set $bg-palid #323232
|
||||
set $fg #e9e0d5
|
||||
set $fg-alt #dad0b6
|
||||
set $accent #b66741
|
||||
set $warn #bc4749
|
||||
|
||||
#borde #fondo #texto #indicador #hijo
|
||||
client.focused $grey $grey #1c1f20 $black $grey
|
||||
client.focused_inactive $grey $grey $fg-alt $black $black
|
||||
client.unfocused $black $black $fg-alt $grey $black
|
||||
client.urgent #333333 #900000 $red #900000 #900000
|
||||
client.placeholder $black $black $red $red #0c0c0c
|
||||
#borde #fondo #texto #indicador #hijo
|
||||
client.focused $bg $bg $accent $bg-atl $accent
|
||||
client.focused_inactive $bg $bg $fg $bg-alt $bg-alt
|
||||
client.unfocused $bg-alt $bg-alt $fg-alt $bg $bg
|
||||
client.urgent $bg-palid $bg-palid $warn $warn $bg-palid
|
||||
client.placeholder $bg $bg $fg $bg-atl $bg-alt
|
||||
|
||||
client.background #ffffff
|
||||
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
# font_family SauceCodePro Nerd Font Mono Medium
|
||||
font_size 11
|
||||
# bold_font auto
|
||||
# italic_font auto
|
||||
# bold_italic_font auto
|
||||
|
||||
macos_option_as_alt no
|
||||
|
||||
background_opacity 1
|
||||
|
||||
background #d5c4a1
|
||||
foreground #665c54
|
||||
cursor #7c6f64
|
||||
cursor_text_color #111111
|
||||
color0 #3c3836
|
||||
color1 #cc241d
|
||||
color2 #98971a
|
||||
color3 #d79921
|
||||
color4 #458588
|
||||
color5 #b16286
|
||||
color6 #689d6a
|
||||
color7 #fbf1c7
|
||||
color8 #3c3836
|
||||
color9 #9d0006
|
||||
color10 #79740e
|
||||
color11 #b57614
|
||||
color12 #076678
|
||||
color13 #8f3f71
|
||||
color14 #427b58
|
||||
color15 #928374
|
||||
|
||||
# The foreground for selections
|
||||
selection_foreground #fbf1c7
|
||||
# The background for selections
|
||||
selection_background #3c3836
|
||||
|
||||
# Emacs terminal background
|
||||
color17 #323F4E
|
||||
# Emacs terminal modeline
|
||||
color23 #3D4C5F
|
||||
|
||||
# The color for the border of the active window
|
||||
active_border_color #b57614
|
||||
|
||||
# The color for the border of inactive windows
|
||||
inactive_border_color #56687E
|
||||
|
||||
url_color #6498EF
|
||||
|
||||
active_tab_foreground #d5c4a1
|
||||
active_tab_background #076678
|
||||
inactive_tab_foreground #665c54
|
||||
inactive_tab_background #d5c4a1
|
||||
|
||||
tab_bar_style powerline
|
||||
hide_window_decorations yes
|
||||
|
||||
cursor_shape block
|
||||
cursor_blink_interval 0
|
||||
|
||||
mouse_hide_wait 3.5
|
||||
enable_audio_bell no
|
||||
|
||||
confirm_os_window_close 0
|
||||
|
||||
detect_urls yes
|
||||
url_prefixes http https file ftp gemini irc gopher mailto news git
|
||||
|
||||
input_delay 1
|
||||
|
||||
window_margin_width 14 14
|
||||
|
||||
tab_bar_edge bottom
|
||||
tab_bar_margin_height 0.0 0.0
|
||||
|
||||
allow_remote_control yes
|
||||
|
||||
# BEGIN_KITTY_FONTS
|
||||
font_family family="JetBrainsMono Nerd Font Mono"
|
||||
bold_font auto
|
||||
italic_font auto
|
||||
bold_italic_font auto
|
||||
text_composition_strategy legacy
|
||||
# END_KITTY_FONTS
|
||||
+14
-13
@@ -3,12 +3,13 @@
|
||||
**/
|
||||
* {
|
||||
highlight: bold italic;
|
||||
background: #141c21;
|
||||
background-alt: #4c5c68;
|
||||
separatorcolor: #4c5c68;
|
||||
border: #518386;
|
||||
highlight: #343c41;
|
||||
foreground: #93a1a1;
|
||||
background: #22222200;
|
||||
background-alt: #292929FA;
|
||||
separatorcolor: #232323;
|
||||
border: #b66741;
|
||||
highlight: #191919F0;
|
||||
highlight-background: #b66741F0;
|
||||
foreground: #dad0b6;
|
||||
normal-background: var(background);
|
||||
urgent-background: var(background);
|
||||
active-background: var(background);
|
||||
@@ -41,16 +42,16 @@ configuration {
|
||||
|
||||
window {
|
||||
padding: 8px;
|
||||
background-color: var(background);
|
||||
border-radius: 4px;
|
||||
background-color: var(background-alt);
|
||||
border-radius: 0px;
|
||||
width: 14%;
|
||||
|
||||
border: 0 0 4px 0;
|
||||
border-color: var(border);
|
||||
|
||||
location: northwest;
|
||||
x-offset: 8px;
|
||||
y-offset: 52px;
|
||||
location: north;
|
||||
x-offset: 0px;
|
||||
y-offset: 38px;
|
||||
}
|
||||
mainbox {
|
||||
padding: 0;
|
||||
@@ -78,7 +79,7 @@ listview {
|
||||
element {
|
||||
padding: 6px ;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
element normal.normal {
|
||||
background-color: var(normal-background);
|
||||
@@ -93,7 +94,7 @@ element normal.active {
|
||||
text-color: var(active-foreground);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(highlight);
|
||||
background-color: var(highlight-background);
|
||||
text-color: var(selected-normal-foreground);
|
||||
}
|
||||
element selected.urgent {
|
||||
|
||||
+55
-49
@@ -1,14 +1,17 @@
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
# Old symbols
|
||||
# ┃
|
||||
|
||||
add_newline = false
|
||||
|
||||
format = """
|
||||
[](color_aqua_10)\
|
||||
[┃](color_accent_1)\
|
||||
$directory\
|
||||
[](fg:color_aqua_10 bg:color_aqua_50)\
|
||||
[](fg:color_accent_1 bg:color_accent_2)\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
[](fg:color_aqua_50 bg:color_blue)\
|
||||
[](fg:color_accent_2 bg:color_accent_3)\
|
||||
$c\
|
||||
$rust\
|
||||
$golang\
|
||||
@@ -18,34 +21,37 @@ $java\
|
||||
$kotlin\
|
||||
$haskell\
|
||||
$python\
|
||||
[](fg:color_blue bg:color_bg3)\
|
||||
[](fg:color_accent_3 bg:color_accent_4)\
|
||||
$docker_context\
|
||||
$conda\
|
||||
[](fg:color_bg3 bg:color_fg1)\
|
||||
[](fg:color_accent_4 bg:color_accent_5)\
|
||||
$time\
|
||||
[ ](fg:color_fg1)\
|
||||
[┃](fg:color_accent_5)\
|
||||
$line_break$character"""
|
||||
|
||||
palette = 'dqnid'
|
||||
|
||||
[palettes.dqnid]
|
||||
color_fg0 = '#b4b7b8'
|
||||
color_fg1 = '#93a1a1'
|
||||
color_bg1 = '#3c3836'
|
||||
color_bg3 = '#586e75'
|
||||
color_fg0 = '#ebdbb2'
|
||||
color_fg1 = '#665c54'
|
||||
color_bg1 = '#d5c4a1'
|
||||
color_bg2 = '#464555'
|
||||
|
||||
color_accent_1 = '#98971a'
|
||||
color_accent_2 = '#d79921'
|
||||
color_accent_3 = '#458588'
|
||||
color_accent_4 = '#b16286'
|
||||
color_accent_5 = '#a89984'
|
||||
|
||||
color_blue = '#458588'
|
||||
color_green = '#98971a'
|
||||
color_purple = '#b16286'
|
||||
color_red = '#cc241d'
|
||||
color_yellow = '#d79921'
|
||||
|
||||
color_aqua_10 = '#156064'
|
||||
color_aqua_50 = '#246a73'
|
||||
color_aqua_70 = '#368f8b'
|
||||
color_yellow = '#e9c46a'
|
||||
|
||||
[os]
|
||||
disabled = false
|
||||
style = "bg:color_aqua_10 fg:color_fg0"
|
||||
style = "bg:color_accent_1 fg:color_fg0"
|
||||
|
||||
[os.symbols]
|
||||
Windows = ""
|
||||
@@ -72,12 +78,12 @@ Pop = ""
|
||||
|
||||
[username]
|
||||
show_always = true
|
||||
style_user = "bg:color_aqua_10 fg:color_fg0"
|
||||
style_root = "bg:color_aqua_10 fg:color_fg0"
|
||||
style_user = "bg:color_accent_1 fg:color_fg0"
|
||||
style_root = "bg:color_accent_1 fg:color_fg0"
|
||||
format = '[ $user ]($style)'
|
||||
|
||||
[directory]
|
||||
style = "fg:color_fg0 bg:color_aqua_10"
|
||||
style = "fg:color_fg0 bg:color_accent_1"
|
||||
format = "[ $path ]($style)"
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
@@ -91,81 +97,81 @@ truncation_symbol = "…/"
|
||||
|
||||
[git_branch]
|
||||
symbol = ""
|
||||
style = "bg:color_aqua_50"
|
||||
format = '[[ $symbol $branch ](fg:color_fg0 bg:color_aqua_50)]($style)'
|
||||
style = "bg:color_accent_2"
|
||||
format = '[[ $symbol $branch ](fg:color_fg0 bg:color_accent_2)]($style)'
|
||||
|
||||
[git_status]
|
||||
style = "bg:color_aqua_50"
|
||||
format = '[[($all_status$ahead_behind )](fg:color_fg0 bg:color_aqua_50)]($style)'
|
||||
style = "bg:color_accent_2"
|
||||
format = '[[($all_status$ahead_behind )](fg:color_fg0 bg:color_accent_2)]($style)'
|
||||
|
||||
[nodejs]
|
||||
symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[c]
|
||||
symbol = " "
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[rust]
|
||||
symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[golang]
|
||||
symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[php]
|
||||
symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[java]
|
||||
symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[kotlin]
|
||||
symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[haskell]
|
||||
symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[python]
|
||||
symbol = ""
|
||||
style = "bg:color_blue"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||
style = "bg:color_accent_3"
|
||||
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_accent_3)]($style)'
|
||||
|
||||
[docker_context]
|
||||
symbol = ""
|
||||
style = "bg:color_bg3"
|
||||
format = '[[ $symbol( $context) ](fg:#83a598 bg:color_bg3)]($style)'
|
||||
style = "bg:color_accent_4"
|
||||
format = '[[ $symbol( $context) ](fg:color_fg0 bg:color_accent_4)]($style)'
|
||||
|
||||
[conda]
|
||||
style = "bg:color_bg3"
|
||||
format = '[[ $symbol( $environment) ](fg:#83a598 bg:color_bg3)]($style)'
|
||||
style = "bg:color_bg2"
|
||||
format = '[[ $symbol( $environment) ](fg:#83a598 bg:color_bg2)]($style)'
|
||||
|
||||
[time]
|
||||
disabled = false
|
||||
time_format = "%R"
|
||||
style = "bg:color_fg1"
|
||||
format = '[[ $time ](fg:color_bg1 bg:color_fg1)]($style)'
|
||||
format = '[[ $time ](fg:color_fg0 bg:color_accent_5)]($style)'
|
||||
|
||||
[line_break]
|
||||
disabled = false
|
||||
|
||||
[character]
|
||||
disabled = false
|
||||
success_symbol = '[ ](bold fg:color_fg1)'
|
||||
error_symbol = '[ ](bold fg:color_red)'
|
||||
vimcmd_symbol = '[](bold fg:color_green)'
|
||||
success_symbol = '[\$](bold fg:color_fg1)'
|
||||
error_symbol = '[](bold fg:color_red)'
|
||||
vimcmd_symbol = '[](bold fg:color_green)'
|
||||
vimcmd_replace_one_symbol = '[](bold fg:color_purple)'
|
||||
vimcmd_replace_symbol = '[](bold fg:color_purple)'
|
||||
vimcmd_visual_symbol = '[](bold fg:color_yellow)'
|
||||
+8
-8
@@ -10,9 +10,9 @@ super + Return
|
||||
# super + @space
|
||||
# dmenu_run
|
||||
# program launcher
|
||||
alt + @space
|
||||
rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/rofi/theme.rasi -show-icons
|
||||
super + @space
|
||||
rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/rofi/theme.rasi -show-icons
|
||||
alt + @space
|
||||
rofi -no-config -no-lazy-grab -show run -theme ~/.config/rofi/theme.rasi -modi
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
@@ -130,18 +130,18 @@ super + Tab
|
||||
|
||||
#Programas
|
||||
super + b
|
||||
zen-browser
|
||||
helium-browser
|
||||
super + shift + b
|
||||
firefox --private-window
|
||||
|
||||
# FIXME: not working
|
||||
super + c
|
||||
xdotool getactivewindow key ctrl+c
|
||||
super + v
|
||||
xdotool getactivewindow key ctrl+v
|
||||
# super + c
|
||||
# xdotool getactivewindow key ctrl+c
|
||||
# super + v
|
||||
# xdotool getactivewindow key ctrl+v
|
||||
|
||||
super + e
|
||||
kitty -e yazi
|
||||
st -e nnn
|
||||
Print
|
||||
flameshot gui
|
||||
super + m
|
||||
|
||||
@@ -9,10 +9,10 @@ id=1527 # HACK: dirty but works
|
||||
|
||||
case $1 in
|
||||
"audio_up")
|
||||
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio" "Up to $audio_percentage%"
|
||||
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio volume" " Up to $audio_percentage% "
|
||||
;;
|
||||
"audio_down")
|
||||
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio" "Down to $audio_percentage%"
|
||||
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio volume" " Down to $audio_percentage% "
|
||||
;;
|
||||
"audio_unmute")
|
||||
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio" "Unmuted"
|
||||
|
||||
@@ -9,6 +9,7 @@ notify() {
|
||||
mpc readpicture "$(mpc current -f %file%)" > $icon_file
|
||||
song_title=$(mpc current -f %Title%)
|
||||
song_artist=$(mpc current -f %albumartist%)
|
||||
song_duration=$(mpc current -f %time%)
|
||||
|
||||
# check image
|
||||
is_image=$(cat $icon_file | grep volume | grep repeat)
|
||||
@@ -20,10 +21,10 @@ notify() {
|
||||
|
||||
case $1 in
|
||||
"playing")
|
||||
notify-send -i $final_icon_route -t 6000 -r $id "Currently playing $song_artist" "$song_title"
|
||||
notify-send -i $final_icon_route -t 6000 -r $id "'$song_artist' is playing" " $song_title ($song_duration)"
|
||||
;;
|
||||
"paused")
|
||||
notify-send -i $final_icon_route -t 6000 -r $id "Player paused" "$song_title"
|
||||
notify-send -i $final_icon_route -t 6000 -r $id "'$song_artist' is paused" " $song_title ($song_duration)"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -16,12 +16,12 @@ getFormalNameFromSink() {
|
||||
echo "Bluetooth audio"
|
||||
;;
|
||||
*usb-Synaptics*)
|
||||
echo "USB-c audio"
|
||||
echo "USB-C audio"
|
||||
;;
|
||||
*USB*)
|
||||
echo "USB audio"
|
||||
;;
|
||||
*HDMI*)
|
||||
*HDMI* | *DP* | *DisplayPort*)
|
||||
echo "Screen audio"
|
||||
;;
|
||||
*pci*)
|
||||
@@ -40,9 +40,14 @@ declare -A sink_map
|
||||
declare menu_options
|
||||
|
||||
readarray -t sink_list < <(pactl list sinks | grep -e "Name" | awk -F: '{print $2}')
|
||||
sink_default=$(pactl get-default-sink)
|
||||
|
||||
for sink in "${sink_list[@]}"; do
|
||||
formal_name=$(getFormalNameFromSink $sink)
|
||||
if [ "$sink" = "$sink_default" ]; then
|
||||
formal_name=" $formal_name"
|
||||
fi
|
||||
|
||||
sink_map["$formal_name"]="$sink"
|
||||
if [[ ${#menu_options} -ne 0 ]]; then
|
||||
menu_options="$menu_options|"
|
||||
|
||||
Reference in new issue
Block a user