SXHKD experimentation, vesktop added, audio profile switching utility, shchemes installer, etc.

This commit is contained in:
Dakedres 2024-08-12 05:52:19 -06:00
parent 0cdbfbd9bd
commit 0a0a444a2d
27 changed files with 1390 additions and 111 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/wallpapers

View File

@ -1,11 +1,11 @@
#!/bin/bash
dir=$PWD
scripts_subdir=$(echo "$PWD/scripts")
scripts_subdir="$PWD/scripts"
# rsync -a ~/pictures/wallpapers/* wallpapers/
cd config
cd config || exit
rsync -a ~/.config/kitty .
rsync -a \
--exclude 'bookmarks' \
@ -13,6 +13,7 @@ rsync -a \
--exclude 'qsettings' \
--exclude 'autoconfig.yml' \
~/.config/qutebrowser .
rsync -a ~/.config/vesktop/settings ./vesktop
rsync -a ~/.config/bspwm .
rsync -a ~/.config/sxhkd .
rsync -a ~/.config/xfce4 \
@ -20,13 +21,14 @@ rsync -a ~/.config/xfce4 \
rsync -a ~/.config/rofi .
# cp ~/.config/picom.conf .
cd ~/bin
cd ~/bin || exit
cp \
bsp-auto-monitors \
bsp-float \
bsp-key-daemon \
bsp-smove \
le-keyboard \
le-audio \
sxhkd-help \
change-scheme \
le-wallpaper \
@ -36,3 +38,5 @@ qutesearch \
rack \
f \
"$scripts_subdir"
cd "$dir"

View File

@ -8,7 +8,7 @@ bsp-key-daemon
bspc config border_width 1
bspc config window_gap 4
bspc config split_ratio 0.52
bspc config split_ratio 0.54
bspc config borderless_monocle true
bspc config gapless_monocle true
@ -24,6 +24,7 @@ bspc config pointer_follows_focus true
bspc rule -a KittyScratch state=floating
bspc rule -a Wrapper-2.0 state=floating # Xfce start menu
bspc rule -a Rofi state=floating
bspc rule -a Gimp state=floating
bspc rule -a Chromium desktop='^2'
bspc rule -a mplayer2 state=floating
@ -31,6 +32,6 @@ bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
xsetroot -cursor_name left_ptr &
$(dirname $0)/colors
"$(dirname "$0")/colors"
export _JAVA_AWT_WM_NONREPARENTING=1

View File

@ -1,3 +1,3 @@
bspc config normal_border_color "#2E303E"
bspc config active_border_color "#6F6F70"
bspc config focused_border_color "#9DA0A2"
bspc config normal_border_color "#68615e"
bspc config active_border_color "#766e6b"
bspc config focused_border_color "#9c9491"

View File

@ -17,48 +17,48 @@ font_size 11.5
#START SHCHEMES BLOCK : shchemes create_theme kitty
# Base16 - kitty color config
# Scheme by
visual_bell_color #171921
visual_bell_color #161413
background #1C1E26
foreground #CBCED0
selection_background #CBCED0
selection_foreground #1C1E26
url_color #26BBD9
cursor #26BBD9
cursor_text_color #1C1E26
active_border_color #6F6F70
inactive_border_color #232530
active_tab_background #1C1E26
active_tab_foreground #CBCED0
inactive_tab_background #232530
inactive_tab_foreground #9DA0A2
background #1b1918
foreground #a8a19f
selection_background #a8a19f
selection_foreground #1b1918
url_color #407ee7
cursor #407ee7
cursor_text_color #1b1918
active_border_color #766e6b
inactive_border_color #2c2421
active_tab_background #1b1918
active_tab_foreground #a8a19f
inactive_tab_background #2c2421
inactive_tab_foreground #9c9491
# Normal
color0 #1C1E26
color1 #E95678
color2 #29D398
color3 #FAC29A
color4 #26BBD9
color5 #EE64AC
color6 #59E1E3
color7 #CBCED0
color0 #1b1918
color1 #f22c40
color2 #7b9726
color3 #c38418
color4 #407ee7
color5 #6666ea
color6 #3d97b8
color7 #a8a19f
# Bright (same as Normal except 8/15)
color8 #6F6F70
color9 #E95678
color10 #29D398
color11 #FAC29A
color12 #26BBD9
color13 #EE64AC
color14 #59E1E3
color15 #E3E6EE
color8 #766e6b
color9 #f22c40
color10 #7b9726
color11 #c38418
color12 #407ee7
color13 #6666ea
color14 #3d97b8
color15 #f1efee
# Other (like base16-shell)
color16 #FAB795
color17 #F09383
color18 #232530
color19 #2E303E
color20 #9DA0A2
color21 #DCDFE4
color16 #df5320
color17 #c33ff3
color18 #2c2421
color19 #68615e
color20 #9c9491
color21 #e6e2e0
#END SHCHEMES BLOCK

View File

@ -47,22 +47,22 @@ config.bind(';b', 'hint bookmarks userscript copy-bookmark')
# Template author: theova
# Commentary: Tinted Theming: (https://github.com/tinted-theming)
base00 = "#1C1E26"
base01 = "#232530"
base02 = "#2E303E"
base03 = "#6F6F70"
base04 = "#9DA0A2"
base05 = "#CBCED0"
base06 = "#DCDFE4"
base07 = "#E3E6EE"
base08 = "#E95678"
base09 = "#FAB795"
base0A = "#FAC29A"
base0B = "#29D398"
base0C = "#59E1E3"
base0D = "#26BBD9"
base0E = "#EE64AC"
base0F = "#F09383"
base00 = "#1b1918"
base01 = "#2c2421"
base02 = "#68615e"
base03 = "#766e6b"
base04 = "#9c9491"
base05 = "#a8a19f"
base06 = "#e6e2e0"
base07 = "#f1efee"
base08 = "#f22c40"
base09 = "#df5320"
base0A = "#c38418"
base0B = "#7b9726"
base0C = "#3d97b8"
base0D = "#407ee7"
base0E = "#6666ea"
base0F = "#c33ff3"
# set qutebrowser colors

View File

@ -7,13 +7,13 @@
*/
* {
red: rgba ( 233, 86, 120, 100 % );
blue: rgba ( 38, 187, 217, 100 % );
lightfg: rgba ( 220, 223, 228, 100 % );
lightbg: rgba ( 35, 37, 48, 100 % );
foreground: rgba ( 203, 206, 208, 100 % );
background: rgba ( 28, 30, 38, 100 % );
background-color: rgba ( 28, 30, 38, 0 % );
red: rgba ( 242, 44, 64, 100 % );
blue: rgba ( 64, 126, 231, 100 % );
lightfg: rgba ( 230, 226, 224, 100 % );
lightbg: rgba ( 44, 36, 33, 100 % );
foreground: rgba ( 168, 161, 159, 100 % );
background: rgba ( 27, 25, 24, 100 % );
background-color: rgba ( 27, 25, 24, 0 % );
separatorcolor: @foreground;
border-color: @foreground;
selected-normal-foreground: @lightbg;

2
config/sxhkd/moderc Normal file
View File

@ -0,0 +1,2 @@
r
sxhkd-mode-exit

73
config/sxhkd/status Executable file
View File

@ -0,0 +1,73 @@
#!/bin/sh
# tail -f test-out | awk -v qt='""' '
# $1 ~ "HSuper_L" { checkstart=1 }
# /^BBegin chain/ && checkstart {
# checkstart=0
# print "rofi -normal-window -e " qt "sxhkd: Super ;" qt
# }
# /^EEnd chain/ {
# print "kill " qt "$pid" qt
# }'
checkstart=false
theme='
window {
anchor: southwest;
location: southwest;
x-offset: 4;
y-offset: -4;
width: 200;
}
listview {
border-color: @blue;
}'
display_message() {
rofi \
-normal-window \
-e "sxhkd: $1" \
-theme-str "$theme" &
pid=$!
}
close_message() {
[ -n "$pid" ] && kill "$pid"
pid=""
}
tail -f test-out | while read -r line; do
case $line in
HSuper_L)
checkstart=true
;;
HSuper_L*)
if [ "$inchain" = "false" ]; then
continue
fi
echo "Extra chain"
close_message
display_message "$line"
;;
"BBegin chain")
if [ "$checkstart" = "false" ]; then
continue
fi
echo "In chain"
checkstart=false
inchain=true
display_message "HSuper_L"
;;
"EEnd chain")
if [ "$inchain" = "false" ]; then
continue
fi
echo "End chain"
close_message
;;
esac
done

View File

@ -54,6 +54,14 @@ super + t
super + Print
xfce4-screenshooter -r
# Manage audio profiles[57362;10u]
super + shift + Pause
le-audio
# Cycle audio profile on default sink
super + Pause
le-audio -afc
#
# bspwm hotkeys
#
@ -142,11 +150,7 @@ super + {_,shift + }{1-6}
# preselect the direction
super + ctrl + shift {h,j,k,l,Left,Down,Up,Right}
bspc node -p {west,south,north,east,west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
@ -155,6 +159,10 @@ super + ctrl + space
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
# swap current window with preselection
super + p
bspc node -n last.\!automatic -t tiled
#
# move/resize
#
@ -171,26 +179,8 @@ super + {h,j,k,l}
# move a window
super + shift + {h,j,k,l,Left,Down,Up,Right}
bsp-smove {west,south,north,east,west,south,north,east}
bsp-smove {west,south,north,east,west,south,north,east}
#
# tabs
#
# move in/out of tabbed container
super + ctrl + {h,j,k,l,Left,Down,Up,Right}
tabc-smart-detach {west,south,north,east,west,south,north,east}
# tab/untab window
super + t
id=$(bspc query -N -n); \
[[ "$(tabc printclass $id)" == "tabbed" ]] \
&& tabc detach $id \
|| tabc create $id
# toggle autoattach in tabbed container
super + shift + t
tabc autoattach $(bspc query -N -n)
#
# Program launching binds

162
config/sxhkd/sxhkdrc.old Normal file
View File

@ -0,0 +1,162 @@
#
# wm independent hotkeys
#
Super_L ; Return
kitty
# # Open kitty
# super + Return
# kitty
# Open floating kitty
# Super_L ; shift + Return
# bsp-float kitty
# launch program (drun)
Super_L ; @space
rofi -show drun -show-icons
# launch program (standard run)
# Super_L ; shift + @space
# rofi -show run
# make sxhkd reload its configuration files:
Super_L ; Escape
pkill -USR1 -x sxhkd && notify-send 'Key daemon reloaded'
super + alt + Menu
le-keyboard && notify-send 'Remapped Keyboard'
# Start a qutebrowser search
Super_L ; o
qutesearch
# Show keybinds
Super_L ; slash
sxhkd-help
# Show clipmenu
Super_L ; v
xfce4-popup-clipman
# Exit session
# Super_L ; shift + q
# xfce4-session-logout
# Lock screen
Super_L ; q
xflock4
# Open task manager
Super_L ; t
# Arguable how valuable this is tbh
bsp-float xfce4-taskmanager
# Screenshot region
Super_L ; Print
xfce4-screenshooter -r
#
# bspwm hotkeys
#
# close and kill
Super_L ; {_,shift + }w
bspc node -{c,k}
# superernate between the tiled and monocle layout
F3
bspc desktop -l next
# send the newest marked node to the newest preselected node
Super_L ; y
bspc node newest.marked.local -n newest.!automatic.local
# Plumb selected text
Super_L ; c
zsh -c "$(sselp | goawk $(cat ~/plumber.awk))"
#
# state/flags
#
# set the window state
Super_L ; {z,shift + z,x,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
#
# focus/swap
#
# focus the node in the given direction
super + {w,a,s,d,j,k,i,l,Left,Down,Up,Right}
bspc node -f {west,south,north,east,west,south,north,east,west,south,north,east}
# Change window, counterclockwise/clockwise
{F1,F2}
bspc node -f {prev,next}.local.!hidden.window
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# focus or send to the given desktop
super + {_,shift + }{1-6}
bspc {desktop -f,node -d} '^{1-6}'
#
# preselect
#
# preselect the direction
super + ctrl + shift {h,j,k,l,Left,Down,Up,Right}
bspc node -p {west,south,north,east,west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
# cancel the preselection for the focused desktop
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
# move/resize
#
# Resize a window by moving one of its side outward/inward
# Super_L ; {w,a,s,d,j,k,i,l,Left,Down,Up,Right}
# STEP=20; SELECTION={1,2,3,4,1,2,3,4,1,2,3,4}; \
# bspc node -z $(echo "left -$STEP 0,bottom 0 $STEP,top 0 -$STEP,right $STEP 0" | cut -d',' -f$SELECTION) || \
# bspc node -z $(echo "right -$STEP 0,top 0 $STEP,bottom 0 -$STEP,left $STEP 0" | cut -d',' -f$SELECTION)
# move a floating window
super + {h,j,k,l}
bspc node -v {-30 0,0 20,0 -30,20 0}
# move a window
super + shift + {w,s,a,d,j,k,i,l,Left,Down,Up,Right}
bsp-smove {west,south,north,east,west,south,north,east,west,south,north,east}
#
# Program launching binds
#
super + 8
vesktop
super + 9
bitwarden
super + 0
kitty --hold sh -c micro

121
config/sxhkd/sxhkdrc.save Executable file
View File

@ -0,0 +1,121 @@
#
# wm independent hotkeys
#
# terminal emulator
super + Return
kitty
# program launcher
super + @space
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
#
# bspwm hotkeys
#
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
# close and kill
super + {_,shift + }w
bspc node -{c,k}
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
# send the newest marked node to the newest preselected node
super + y
bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest window
super + g
bspc node -s biggest.window
#
# state/flags
#
# set the window state
super + {t,shift + t,s,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# set the node flags
super + ctrl + {m,x,y,z}
bspc node -g {marked,locked,sticky,private}
#
# focus/swap
#
# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# focus the node for the given path jump
super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second}
# focus the next/previous window in the current desktop
super + {_,shift + }c
bspc node -f {next,prev}.local.!hidden.window
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# focus the older or newer node in the focus history
super + {o,i}
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
# focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
#
# preselect
#
# preselect the direction
super + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
# cancel the preselection for the focused desktop
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
# move/resize
#
# expand a window by moving one of its side outward
super + alt + {h,j,k,l}
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}

52
config/sxhkd/sxhkdrc.seq Normal file
View File

@ -0,0 +1,52 @@
#
# Utilities
#
Super_L ; Return
kitty
# Open floating kitty
Super_L ; f ; Return
bsp-float kitty
# open rofi
Super_L ; @space
rofi -show drun -show-icons
#
# Management
#
# Close or kill window
Super_L ; {_,shift + }w
bspc node -{c,k}
#
# Navigation
#
super + {w,a,s,d,j,k,i,l,Left,Down,Up,Right}
bspc node -f {west,south,north,east,west,south,north,east,west,south,north,east}
super + shift + {w,s,a,d,j,k,i,l,Left,Down,Up,Right}
bsp-smove {west,south,north,east,west,south,north,east,west,south,north,east}
# focus or send to the given desktop
Super_L ; {_,shift + }{1-5}
bspc {desktop -f,node -d} '^{1-5}'
#
# Program launching binds
#
Super_L ; o
qutesearch
super + 8
vesktop
super + 9
bitwarden
super + 0
kitty --hold sh -c micro

110
config/sxhkd/test-out Normal file
View File

@ -0,0 +1,110 @@
HSuper_L
BBegin chain
EEnd chain
Hsuper + Right
Cbspc node -f east
Hsuper + Left
Cbspc node -f west
Hsuper + Right
Cbspc node -f east
HSuper_L
BBegin chain
HSuper_L ; Return
EEnd chain
Ckitty
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
TTimeout reached
EEnd chain
HSuper_L
BBegin chain
TTimeout reached
EEnd chain
HSuper_L
BBegin chain
HSuper_L ; 2
EEnd chain
Cbspc desktop -f '^2'
HSuper_L
BBegin chain
TTimeout reached
EEnd chain
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
HSuper_L ; w
EEnd chain
Cbspc node -c
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
HSuper_L ; o
EEnd chain
Cqutesearch
HSuper_L
BBegin chain
HSuper_L ; w
EEnd chain
Cbspc node -c
HSuper_L
BBegin chain
HSuper_L ; w
EEnd chain
Cbspc node -c
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
HSuper_L ; o
EEnd chain
Cqutesearch
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
EEnd chain
Hsuper + w
Cbspc node -f west
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
HSuper_L ; 1
EEnd chain
Cbspc desktop -f '^1'
HSuper_L
BBegin chain
HSuper_L ; 2
EEnd chain
Cbspc desktop -f '^2'
HSuper_L
BBegin chain
EEnd chain
Hsuper + Right
Cbspc node -f east
Hsuper + Left
Cbspc node -f west
Hsuper + Right
Cbspc node -f east
HSuper_L
BBegin chain
EEnd chain
HSuper_L
BBegin chain
EEnd chain

View File

@ -0,0 +1,6 @@
@media screen and (max-width: 1280px) {
/* Hide guild members sidebar */
.container_cbd271 {
display: none;
}
}

View File

@ -0,0 +1,587 @@
{
"notifyAboutUpdates": true,
"autoUpdate": false,
"autoUpdateNotification": true,
"useQuickCss": true,
"themeLinks": [],
"enabledThemes": [
"theme.css"
],
"enableReactDevtools": false,
"frameless": false,
"transparent": false,
"winCtrlQ": false,
"disableMinSize": false,
"winNativeTitleBar": false,
"plugins": {
"BadgeAPI": {
"enabled": true
},
"ChatInputButtonAPI": {
"enabled": false
},
"CommandsAPI": {
"enabled": true
},
"ContextMenuAPI": {
"enabled": true
},
"MemberListDecoratorsAPI": {
"enabled": false
},
"MessageAccessoriesAPI": {
"enabled": true
},
"MessageDecorationsAPI": {
"enabled": false
},
"MessageEventsAPI": {
"enabled": true
},
"MessagePopoverAPI": {
"enabled": false
},
"NoticesAPI": {
"enabled": true
},
"ServerListAPI": {
"enabled": false
},
"NoTrack": {
"enabled": true,
"disableAnalytics": true
},
"Settings": {
"enabled": true,
"settingsLocation": "aboveActivity"
},
"SupportHelper": {
"enabled": true
},
"AlwaysAnimate": {
"enabled": false
},
"AlwaysTrust": {
"enabled": false
},
"AnonymiseFileNames": {
"enabled": false
},
"WebRichPresence (arRPC)": {
"enabled": false
},
"BANger": {
"enabled": false
},
"BetterFolders": {
"enabled": false
},
"BetterGifAltText": {
"enabled": false
},
"BetterGifPicker": {
"enabled": false
},
"BetterNotesBox": {
"enabled": false
},
"BetterRoleContext": {
"enabled": false
},
"BetterRoleDot": {
"enabled": false
},
"BetterSettings": {
"enabled": false
},
"BetterUploadButton": {
"enabled": false
},
"BiggerStreamPreview": {
"enabled": false
},
"BlurNSFW": {
"enabled": false
},
"CallTimer": {
"enabled": false
},
"ClearURLs": {
"enabled": true
},
"ClientTheme": {
"enabled": false
},
"ColorSighted": {
"enabled": false
},
"ConsoleShortcuts": {
"enabled": false
},
"CopyUserURLs": {
"enabled": false
},
"CrashHandler": {
"enabled": true
},
"CustomRPC": {
"enabled": false
},
"Dearrow": {
"enabled": true,
"hideButton": false,
"replaceElements": 0
},
"Decor": {
"enabled": false
},
"DisableCallIdle": {
"enabled": false
},
"EmoteCloner": {
"enabled": false
},
"Experiments": {
"enabled": false
},
"F8Break": {
"enabled": false
},
"FakeNitro": {
"enabled": false
},
"FakeProfileThemes": {
"enabled": false
},
"FavoriteEmojiFirst": {
"enabled": false
},
"FavoriteGifSearch": {
"enabled": false
},
"FixCodeblockGap": {
"enabled": false
},
"FixSpotifyEmbeds": {
"enabled": false
},
"FixYoutubeEmbeds": {
"enabled": false
},
"ForceOwnerCrown": {
"enabled": false
},
"FriendInvites": {
"enabled": false
},
"FriendsSince": {
"enabled": false
},
"GameActivityToggle": {
"enabled": false
},
"GifPaste": {
"enabled": false
},
"GreetStickerPicker": {
"enabled": false
},
"HideAttachments": {
"enabled": false
},
"iLoveSpam": {
"enabled": false
},
"IgnoreActivities": {
"enabled": false
},
"ImageZoom": {
"enabled": false
},
"InvisibleChat": {
"enabled": false
},
"KeepCurrentChannel": {
"enabled": false
},
"LastFMRichPresence": {
"enabled": false
},
"LoadingQuotes": {
"enabled": false
},
"MemberCount": {
"enabled": false
},
"MessageClickActions": {
"enabled": false
},
"MessageLinkEmbeds": {
"enabled": false
},
"MessageLogger": {
"enabled": false
},
"MessageTags": {
"enabled": false
},
"MoreCommands": {
"enabled": false
},
"MoreKaomoji": {
"enabled": false
},
"MoreUserTags": {
"enabled": false
},
"Moyai": {
"enabled": false
},
"MutualGroupDMs": {
"enabled": false
},
"NewGuildSettings": {
"enabled": false
},
"NoBlockedMessages": {
"enabled": false
},
"NoDevtoolsWarning": {
"enabled": false
},
"NoF1": {
"enabled": false
},
"NoMosaic": {
"enabled": false
},
"NoPendingCount": {
"enabled": false
},
"NoProfileThemes": {
"enabled": false
},
"NoReplyMention": {
"enabled": false
},
"NoScreensharePreview": {
"enabled": false
},
"NoTypingAnimation": {
"enabled": false
},
"NoUnblockToJump": {
"enabled": false
},
"NormalizeMessageLinks": {
"enabled": false
},
"NotificationVolume": {
"enabled": false
},
"NSFWGateBypass": {
"enabled": false
},
"OnePingPerDM": {
"enabled": false
},
"oneko": {
"enabled": false
},
"OpenInApp": {
"enabled": false
},
"OverrideForumDefaults": {
"enabled": false
},
"PermissionFreeWill": {
"enabled": false
},
"PermissionsViewer": {
"enabled": false
},
"petpet": {
"enabled": false
},
"PictureInPicture": {
"enabled": false
},
"PinDMs": {
"enabled": false
},
"PlainFolderIcon": {
"enabled": false
},
"PlatformIndicators": {
"enabled": false
},
"PreviewMessage": {
"enabled": false
},
"PronounDB": {
"enabled": false
},
"QuickMention": {
"enabled": false
},
"QuickReply": {
"enabled": false
},
"ReactErrorDecoder": {
"enabled": false
},
"ReadAllNotificationsButton": {
"enabled": false
},
"RelationshipNotifier": {
"enabled": false
},
"ResurrectHome": {
"enabled": false
},
"RevealAllSpoilers": {
"enabled": false
},
"ReverseImageSearch": {
"enabled": false
},
"ReviewDB": {
"enabled": false
},
"RoleColorEverywhere": {
"enabled": false
},
"SearchReply": {
"enabled": false
},
"SecretRingToneEnabler": {
"enabled": false
},
"SendTimestamps": {
"enabled": false
},
"ServerListIndicators": {
"enabled": false
},
"ShikiCodeblocks": {
"enabled": false
},
"ShowAllMessageButtons": {
"enabled": false
},
"ShowConnections": {
"enabled": false
},
"ShowHiddenChannels": {
"enabled": false
},
"ShowMeYourName": {
"enabled": false
},
"SilentMessageToggle": {
"enabled": false
},
"SilentTyping": {
"enabled": false
},
"SortFriendRequests": {
"enabled": false
},
"SpotifyControls": {
"enabled": false
},
"SpotifyCrack": {
"enabled": false
},
"SpotifyShareCommands": {
"enabled": false
},
"StartupTimings": {
"enabled": false
},
"SuperReactionTweaks": {
"enabled": false
},
"TextReplace": {
"enabled": false
},
"ThemeAttributes": {
"enabled": false
},
"TimeBarAllActivities": {
"enabled": false
},
"Translate": {
"enabled": false
},
"TypingIndicator": {
"enabled": false
},
"TypingTweaks": {
"enabled": false
},
"Unindent": {
"enabled": false
},
"UnsuppressEmbeds": {
"enabled": false
},
"UrbanDictionary": {
"enabled": false
},
"UserVoiceShow": {
"enabled": false
},
"USRBG": {
"enabled": false
},
"ValidUser": {
"enabled": false
},
"VoiceChatDoubleClick": {
"enabled": false
},
"VcNarrator": {
"enabled": false
},
"VencordToolbox": {
"enabled": false
},
"ViewIcons": {
"enabled": false
},
"ViewRaw": {
"enabled": false
},
"VoiceMessages": {
"enabled": false
},
"WebContextMenus": {
"enabled": true,
"addBack": true
},
"WebKeybinds": {
"enabled": true
},
"WhoReacted": {
"enabled": false
},
"Wikisearch": {
"enabled": false
},
"XSOverlay": {
"enabled": false
},
"UnlockedAvatarZoom": {
"enabled": false
},
"ShowHiddenThings": {
"enabled": false
},
"BetterSessions": {
"enabled": false
},
"ImplicitRelationships": {
"enabled": false
},
"StreamerModeOnStream": {
"enabled": false
},
"PartyMode": {
"enabled": false
},
"MessageUpdaterAPI": {
"enabled": false
},
"AutomodContext": {
"enabled": false
},
"CtrlEnterSend": {
"enabled": false
},
"CustomIdle": {
"enabled": false
},
"DontRoundMyTimestamps": {
"enabled": false
},
"ImageLink": {
"enabled": false
},
"MaskedLinkPaste": {
"enabled": false
},
"MessageLatency": {
"enabled": false
},
"NoDefaultHangStatus": {
"enabled": false
},
"NoServerEmojis": {
"enabled": false
},
"PauseInvitesForever": {
"enabled": false
},
"ReplaceGoogleSearch": {
"enabled": false
},
"ReplyTimestamp": {
"enabled": false
},
"Summaries": {
"enabled": false
},
"ShowTimeoutDuration": {
"enabled": false
},
"ValidReply": {
"enabled": false
},
"VoiceDownload": {
"enabled": false
},
"WatchTogetherAdblock": {
"enabled": false
},
"WebScreenShareFixes": {
"enabled": true
},
"ServerInfo": {
"enabled": false
},
"UserSettingsAPI": {
"enabled": true
},
"AppleMusicRichPresence": {
"enabled": false
},
"ConsoleJanitor": {
"enabled": false
},
"CopyEmojiMarkdown": {
"enabled": false
},
"MentionAvatars": {
"enabled": false
},
"NoOnboardingDelay": {
"enabled": false
},
"ShowAllRoles": {
"enabled": false
}
},
"notifications": {
"timeout": 5000,
"position": "bottom-right",
"useNative": "not-focused",
"logLimit": 50
},
"cloud": {
"authenticated": false,
"url": "https://api.vencord.dev/",
"settingsSync": false,
"settingsSyncVersion": 1723460751842
}
}

View File

@ -4,7 +4,7 @@ last_user=
last_extension=png
enable_imgur_upload=true
show_in_folder=false
screenshot_dir=file:/home/dakedres/documents
screenshot_dir=file:/home/dakedres
action=2
delay=0
region=3

View File

@ -10,13 +10,13 @@
<property name="last-view" type="string" value="ThunarDetailsView"/>
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_100_PERCENT"/>
<property name="last-window-width" type="int" value="990"/>
<property name="last-window-height" type="int" value="1045"/>
<property name="last-window-height" type="int" value="499"/>
<property name="last-window-maximized" type="bool" value="false"/>
<property name="last-separator-position" type="int" value="170"/>
<property name="last-show-hidden" type="bool" value="true"/>
<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_38_PERCENT"/>
<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_25_PERCENT"/>
<property name="last-details-view-visible-columns" type="string" value="THUNAR_COLUMN_DATE_MODIFIED,THUNAR_COLUMN_NAME,THUNAR_COLUMN_SIZE,THUNAR_COLUMN_TYPE"/>
<property name="last-details-view-column-widths" type="string" value="50,50,106,50,73,135,50,50,1476,50,50,60,50,97"/>
<property name="last-details-view-column-widths" type="string" value="50,50,106,50,73,311,50,50,384,50,50,65,50,356"/>
<property name="last-sort-column" type="string" value="THUNAR_COLUMN_DATE_MODIFIED"/>
<property name="last-sort-order" type="string" value="GTK_SORT_DESCENDING"/>
</channel>

View File

@ -68,6 +68,6 @@
</property>
<property name="last" type="empty">
<property name="window-width" type="int" value="598"/>
<property name="window-height" type="int" value="516"/>
<property name="window-height" type="int" value="548"/>
</property>
</channel>

View File

@ -45,7 +45,6 @@
<property name="custom" type="empty">
<property name="XF86WWW" type="string" value="exo-open --launch WebBrowser"/>
<property name="XF86Mail" type="string" value="exo-open --launch MailReader"/>
<property name="Print" type="string" value="xfce4-screenshooter"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Delete" type="string" value="xfce4-session-logout"/>
<property name="HomePage" type="string" value="exo-open --launch WebBrowser"/>
<property name="override" type="bool" value="true"/>

View File

@ -9,9 +9,11 @@
<property name="applications" type="empty">
<property name="known_applications" type="array">
<value type="string" value="blueman"/>
<value type="string" value="discord"/>
<value type="string" value="FileZilla"/>
<value type="string" value="notify-send"/>
<value type="string" value="org.freedesktop.network-manager-applet"/>
<value type="string" value="org.kde.kdenlive"/>
<value type="string" value="org.qutebrowser.qutebrowser"/>
<value type="string" value="org.xfce.Thunar"/>
<value type="string" value="thunar-volman"/>

View File

@ -4,7 +4,7 @@
<property name="panels" type="array">
<value type="int" value="1"/>
<property name="panel-1" type="empty">
<property name="position" type="string" value="p=6;x=0;y=0"/>
<property name="position" type="string" value="p=6;x=960;y=12"/>
<property name="length" type="double" value="100"/>
<property name="position-locked" type="bool" value="true"/>
<property name="plugin-ids" type="array">
@ -28,6 +28,7 @@
<property name="span-monitors" type="bool" value="false"/>
<property name="mode" type="uint" value="0"/>
<property name="autohide-behavior" type="uint" value="0"/>
<property name="enable-struts" type="bool" value="true"/>
</property>
<property name="dark-mode" type="bool" value="false"/>
</property>
@ -38,16 +39,15 @@
<value type="string" value="xfce4-terminal-emulator.desktop"/>
</property>
<property name="recent" type="array">
<value type="string" value="discord.desktop"/>
<value type="string" value="steam.desktop"/>
<value type="string" value="xfce-keyboard-settings.desktop"/>
<value type="string" value="Bitwarden.desktop"/>
<value type="string" value="qmidiroute.desktop"/>
<value type="string" value="xfce-backdrop-settings.desktop"/>
<value type="string" value="Vesktop.desktop"/>
<value type="string" value="xfce4-file-manager.desktop"/>
<value type="string" value="org.gnome.Nibbles.desktop"/>
<value type="string" value="steam.desktop"/>
<value type="string" value="xfce4-terminal-emulator.desktop"/>
<value type="string" value="org.gnome.five-or-more.desktop"/>
<value type="string" value="Boots Quest DX.desktop"/>
<value type="string" value="Team Fortress 2.desktop"/>
<value type="string" value="org.gnome.Quadrapassel.desktop"/>
</property>
</property>
<property name="plugin-2" type="string" value="separator">

9
install-shchemes.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
printf %s '
#START SHCHEMES BLOCK : printf "SCHEME=\"%s\"\n" "$SCHEME"
SCHEME="horizon-terminal-dark"
#END SHCHEMES BLOCK
' >> ~/.profile
change-scheme

View File

@ -28,7 +28,7 @@ shchemes inject "$HOME/.config/kitty/kitty.conf"
pkill -SIGUSR1 kitty
shchemes create_theme rofi > "$HOME/.config/rofi/theme.rasi"
shchemes create_theme better-discord > "$HOME/.config/vesktop/themes/.theme.css"
shchemes create_theme better-discord > "$HOME/.config/vesktop/themes/theme.css"
shchemes create_theme obsidian > "$HOME/media/vault/.obsidian/themes/base16.css"
"$HOME/repos/oomox-gtk-theme/change_color.sh" -o base16 <(shchemes create_theme oomox-gtk)

View File

@ -18,15 +18,12 @@ else
format="${format%%/*}"
case "$format" in
"text")
batcat "$path" --paging=never
;;
"image")
kitty +kitten icat "$path"
;;
*)
xdg-open "$path"
cat "$path"
;;
esac
fi

162
scripts/le-audio Executable file
View File

@ -0,0 +1,162 @@
#!/bin/sh
get_cards() {
pacmd list-cards | awk -F '[\t ]+' '
function printcard() {
print cardindex " " cardname " " carddesc
}
$2 ~ "index:" {
if(incard) {
printcard()
}
incard=1
cardindex=$3
}
incard && $2 ~ "name:" {
cardname=substr($3, 2, length($3) - 2)
}
incard && $2 ~ "device.description" {
carddesc=substr($0, index($0, "= ") + 2)
}
END {
printcard()
}
'
}
# First line will always be the active profile
get_selected_card_profiles() {
pacmd list-cards | awk -F '[\t ]+' \
-v selected_card_index="$selected_card_index" '
BEGIN {
profile_count=0
}
function print_card() {
if(do_print) {
print profile_names[i] " " profile_descs[i]
}
}
$2 ~ "index:" && $3 == selected_card_index {
incard=1
}
incard && $2 ~ "profiles:" {
inprofiles=1
next
}
inprofiles && $2 ~ "active" {
for(i = 0; i < profile_count; i++) {
if(profile_names[i] == substr($4, 2, length($4) - 2)) {
current_card_index=i
do_print=1
}
print_card()
}
for(i = 0; i < current_card_index; i++) {
print_card()
}
exit
}
inprofiles {
profile_names[profile_count] = substr($2, 0, length($2) - 1)
profile_descs[profile_count] = substr($0, index($0, ": ") + 2)
profile_count++
}
'
}
select_default_sink_card() {
selected_card=$(pacmd list-sinks | awk -F '[\t ]+' '
$2 == "*" && $3 ~ "index:" {
incard=1
}
incard && $2 == "card:" {
print $3 " " substr($4, 2, length($4) - 2)
exit
}
')
}
select_card_manually() {
card_options=$(get_cards)
selected_option_index=$(printf %s\\n "$card_options" | rofi -dmenu -format 'i')
selected_option_index=$((selected_option_index+1))
selected_card=$(printf %s\\n "$card_options" | sed -n "${selected_option_index}p")
}
print_usage() {
printf '
Usage: le-audio [OPTIONS]
Manage audio profiles
Options
-a Auto - Auto-select the card for the default sink
-f Filter - Filter out "off" profiles
-c Cycle - Auto-select the next audio profile after the current one
Utility written by Dakedres (dakedres.sys42.net)
'
}
while getopts 'afc' args; do
case "$args" in
a)
arg_auto_select_card=true
;;
f)
arg_filter_off_profile=true
;;
c)
arg_select_next_profile=true
;;
?)
print_usage
exit
;;
*)
>&2 echo "Invalid option '${args}'"
esac
done
if [ "$arg_auto_select_card" = true ]; then
select_default_sink_card
else
select_card_manually
fi
selected_card_index=$(printf %s\\n "$selected_card" | awk '{ print $1 }')
echo "$selected_card"
if [ "$arg_filter_off_profile" = true ]; then
selected_card_profiles=$(get_selected_card_profiles | grep -v '^off')
else
selected_card_profiles=$(get_selected_card_profiles)
fi
if [ "$arg_select_next_profile" = true ]; then
selected_profile_index=1
else
selected_profile_index=$(printf %s\\n "$selected_card_profiles" | rofi -dmenu -format "i")
fi
if [ -z "$selected_profile_index" ]; then
>&2 echo "No profile selected"
exit 1
fi
printf %s\\n "$selected_card_profiles" | awk \
-v selected_profile_index="$selected_profile_index" \
-v selected_card="$selected_card" \
-v qt="'" '
NR-1 == selected_profile_index {
split(selected_card, split_card, " ")
printf "pactl set-card-profile" " " split_card[1] " " $1
$1=""
print " && notify-send " qt "Set audio profile to" $0 qt
}
' | sh

View File

@ -1,6 +1,7 @@
#!/bin/sh
db=$HOME/.local/share/qutebrowser/history.sqlite
url=$(sqlite3 "$db" "select title,url from History" | tac | rofi -dmenu | awk -F '|' '{print $NF}')
url=$(sqlite3 "$db" "select title,url from History" | tac | awk '!a[$0]++' | rofi -dmenu | awk -F '|' '{print $NF}')
[ -z "$url" ] && exit
qutebrowser "$url"