gianmarco
/
dotfiles
Archived
1
0
Fork 0

Fourth experimental commit for the new bspwm-based rice

master
gianmarco 2022-01-18 14:43:11 +01:00
parent c11d15e6e4
commit 00b0bdbd0b
10 changed files with 79 additions and 15 deletions

View File

@ -28,6 +28,11 @@ bspc rule -a KeePassXC state=floating
bspc rule -a SimpleScreenRecorder state=floating
bspc rule -a krfb state=floating
bspc rule -a 'LibreWolf:Toolkit' state=floating
bspc rule -a ark state=floating
bspc rule -a Authenticator-rs state=floating
bspc rule -a kcharselect state=floating
bspc rule -a plasma.emojier state=floating
bspc rule -a rpi-imager state=floating
bspc rule -a desktop="Desktop" locked=on
~/Scripts/autostart.sh

View File

@ -34,6 +34,7 @@ rounded-corners-exclude = [
round-borders = 1;
round-borders-exclude = [
#"class_g = 'TelegramDesktop'",
"class_g = 'stalonetray'"
];
#################################

View File

@ -372,7 +372,7 @@ interval = 1.0
;;date = %Y-%m-%d%
; Optional time format
time = "%{A1:xdotool keydown Super_L+Shift_L+s && xdotool keyup Super_L+Shift_L+s:}%a %d %b, %H:%M%{A}"
time = "%{A1:korganizer:}%a %d %b, %H:%M%{A}"
; if `date-alt` or `time-alt` is defined, clicking
; the module will toggle between formats

View File

@ -15,10 +15,10 @@ label-foreground = ${colors.foreground}
exec = pulseaudio-control --osd --color-muted bdc3c7 --icons-volume " , " --icon-muted " " --sink-nicknames-from "device.description" --sink-nickname "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3:(HDMI)" --sink-nickname "alsa_output.pci-0000_00_1f.3.analog-stereo:(Cuffie)" listen
click-right = exec pavucontrol-qt &
click-left = pulseaudio-control togmute && play '~/Sounds/changevol.wav'
click-left = pulseaudio-control togmute && ~/Scripts/volume.sh mute
click-middle = pulseaudio-control next-sink && play '~/Sounds/changeaudio.ogg'
scroll-up = pulseaudio-control --volume-max 100 up && play '~/Sounds/changevol.wav'
scroll-down = pulseaudio-control --volume-max 100 down && play '~/Sounds/changevol.wav'
scroll-up = pulseaudio-control --volume-max 100 up && ~/Scripts/volume.sh up
scroll-down = pulseaudio-control --volume-max 100 down && ~/Scripts/volume.sh down
[module/mail]
type = custom/script

View File

@ -25,7 +25,7 @@ underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x2:\0\0\0\xda\0\0\x5\x1e\0\0\x3\x63\0\0\x2=\0\0\0\xdd\0\0\x5\x1b\0\0\x3`\0\0\0\0\0\0\0\0\a\x80\0\0\x2=\0\0\0\xdd\0\0\x5\x1b\0\0\x3`)"
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x3\xc5\0\0\0-\0\0\au\0\0\x4-\0\0\x3\xc8\0\0\0\x30\0\0\ar\0\0\x4*\0\0\0\0\0\0\0\0\a\x80\0\0\x3\xc8\0\0\0\x30\0\0\ar\0\0\x4*)
[Troubleshooting]
force_raster_widgets=1

View File

@ -45,6 +45,14 @@ super + c
# Dolphin
super + e
dolphin
# KMail
super + m
kmail
# Evolution
super + alt + m
evolution
# Screenshot (Flameshot)
Print
@ -52,11 +60,11 @@ Print
# Notification center
super + a
if [[ $(dunstctl count history) == "0" ]]; then play '/data/Altro/suoni talkback/uD.ogg'; fi; dunstctl history-pop
if [[ $(dunstctl count history) == "0" ]]; then play '~/Sounds/ding.ogg'; fi; dunstctl history-pop
# Pause notifications
super + alt + a
dunstctl set-paused toggle; if [[ $(dunstctl is-paused) == "false" ]]; then play '/data/Altro/suoni talkback/b2.ogg'; fi
dunstctl set-paused toggle; if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/unmute.ogg'; fi
#
# other keys
@ -64,7 +72,7 @@ super + alt + a
# lock screen
super + l
play '/data/Download/OSMK Part 2 - Sounds/3 - Linux/KDE/KDE 3/Newer/KDE_Logout_2.ogg' & betterlockscreen -l && play '/data/Download/OSMK Part 2 - Sounds/3 - Linux/KDE/KDE 3/Newer/KDE_Logout_3.ogg'
play '~/Sounds/lock.ogg' & betterlockscreen -l && play '~/Sounds/unlock.ogg'
# xkill
ctrl + alt + Escape
@ -76,15 +84,15 @@ ctrl + alt + Escape
# raise volume
XF86AudioRaiseVolume
pulseaudio-control --volume-max 100 up && play '/data/Creazioni/Dream Sounds/Harmony/Volume Change.wav'
pulseaudio-control --volume-max 100 up && ~/Scripts/volume.sh up
# lower volume
XF86AudioLowerVolume
pulseaudio-control --volume-max 100 down && play '/data/Creazioni/Dream Sounds/Harmony/Volume Change.wav'
pulseaudio-control --volume-max 100 down && ~/Scripts/volume.sh down
# mute volume
XF86AudioMute
pulseaudio-control togmute && play '/data/Creazioni/Dream Sounds/Harmony/Volume Change.wav'
pulseaudio-control togmute && ~/Scripts/volume.sh mute
# stop media
XF86AudioStop
@ -150,11 +158,11 @@ super + Up
# sticky window
super + alt + space
bspc node -g sticky && play '/data/Altro/suoni talkback/wb.ogg'
bspc node -g sticky && play '~/Sounds/sticky.ogg'
# make window master
super + Return
bspc node -s biggest.local || play '/data/Altro/suoni talkback/uD.ogg'
bspc node -s biggest.local || play '~/Sounds/ding.ogg'
# cycle windows
alt + {_,shift + }Tab

3
.zshrc
View File

@ -1,6 +1,7 @@
# This is Gianmarco's .zshrc.
export HISTFILE=~/.zsh_history
export SAVEHIST=1000
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
@ -28,4 +29,4 @@ alias update="~/.config/polybar/gmg/scripts/aggiorna.sh"
alias caveau="cryfs /data/Caveau ~/Vaults/Caveau && dolphin ~/Vaults/Caveau"
alias rm="rm -I"
alias panpdf="~/Scripts/panpdf.sh"
alias netrend="~/Scripts/netsend.sh"
alias netrend="~/Scripts/netsend.sh"

View File

@ -20,6 +20,7 @@ yakuake &
keepassxc &
syncthingtray --wait &
stalonetray &
nextcloud &
#i=1
#while [ $i -le 6 ]

View File

@ -7,7 +7,7 @@
# of unrecognised usb sounds (and play fail noise)
# change this if you want sounds elsewhere
SNDDIR=/home/gianmarco/;
SNDDIR=~/Sounds/;
# check frequency (default 0.25 seconds)
CHECKFREQ=0.25

48
Scripts/volume.sh Executable file
View File

@ -0,0 +1,48 @@
#!/bin/bash
# You can call this script like this:
# $./volume.sh up
# $./volume.sh down
# $./volume.sh mute
function get_volume {
amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1
}
function is_mute {
amixer get Master | grep '%' | grep -oE '[^ ]+$' | grep off > /dev/null
}
function send_notification {
volume=`get_volume`
# Make the bar with the special character ─ (it's not dash -)
# https://en.wikipedia.org/wiki/Box-drawing_character
bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g')
# Send the notification
dunstify -i audio-on -t 2000 -r 2593 -u normal "$volume $bar" -a Volume
if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/changevol.wav'; fi
}
case $1 in
up)
# Set the volume on (if it was muted)
#amixer -D pulse set Master on > /dev/null
# Up the volume (+ 5%)
#amixer -D pulse sset Master 5%+ > /dev/null
send_notification
;;
down)
#amixer -D pulse set Master on > /dev/null
#amixer -D pulse sset Master 5%- > /dev/null
send_notification
;;
mute)
# Toggle mute
#amixer -D pulse set Master 1+ toggle > /dev/null
if is_mute ; then
dunstify -i audio-volume-muted -t 2000 -r 2593 -u normal "Muto" -a Volume
else
send_notification
fi
;;
esac