dotfiles

Mahdi's dotfiles
git clone git://mahdi.pw/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit c72e35e10aa806f25824cc106521f1d99fbbcd96
parent d01a5382c9abd1def8b014320f9db4d2788aab32
Author: Mahdi Mirzade <[email protected]>
Date:   Sat,  6 Aug 2022 00:33:30 +0430

Update configuration

Diffstat:
M.config/mpv/input.conf | 14++++++++------
M.config/picom/picom.conf | 21++++++++++++---------
M.config/x11/xinitrc | 27++++++++++++++-------------
3 files changed, 34 insertions(+), 28 deletions(-)

diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf @@ -47,14 +47,16 @@ Alt+BS set video-zoom 0; set video-pan-x 0; set video-pan-y 0 # ------------------------------------------------------------------------ # Scripts -# - Copy the full path of the current file -Ctrl+d run "/bin/sh" "-c" "(choice=`printf 'Yes\nNo' | dmenu -p \"Delete \\\"${path}\\\"?\"` && [ $choice = 'Yes' ] && rm \"$PWD/${path}\" && dunstify \"MPV\" \"Removed \\\"$PWD/${path}\\\".\")" +# - Delete the current file +Ctrl+d run "/bin/sh" "-c" "(choice=`printf 'Yes\nNo' | dmenu -p \"Delete \\\"${path}\\\"?\"` && [ $choice = 'Yes' ] && rm \"${PWD}/${path}\" && dunstify \"MPV\" \"Removed \\\"${PWD}/${path}\\\".\")" -# - Copy the full path of the current file -Ctrl+c run "/bin/sh" "-c" "echo $PWD/${path} | xclip -selection c" +# - Copy the name of the file to clipboard +Ctrl+y run "/bin/sh" "-c" "printf '%s' \"${path}\" | xclip -selection c"; show-text "Copied ${path} to Clipboard" -# - Copy only the name of the file -Ctrl+Shift+c run "/bin/sh" "-c" "echo ${path} | xclip -selection c" +# TODO: Figure this out +# - Paste from clipboard to playlist +Ctrl+p run "/bin/sh" "-c" "xclip -selection c -o" +ctrl+p loadfile "$(xclip -selection c -o)" append-play # ------------------------------------------------------------------------ # Mouse controls diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf @@ -1,9 +1,9 @@ ################################# # Shadows # ################################# -shadow = true; +shadow = false; shadow-radius = 7; -shadow-opacity = .75 +shadow-opacity = .75; shadow-offset-x = -7; shadow-offset-y = -7; shadow-exclude = [ @@ -18,9 +18,9 @@ shadow-exclude = [ # Fading # ################################# fading = true; -fade-in-step = 0.03; -fade-out-step = 0.03; -fade-delta = 10 +fade-in-step = 0.5; +fade-out-step = 0.5; +fade-delta = 10; ################################# # Transparency / Opacity # @@ -28,11 +28,14 @@ fade-delta = 10 inactive-opacity = 0.95; frame-opacity = 0.9; inactive-opacity-override = false; -active-opacity = 1.0 -inactive-dim = 0.0 +active-opacity = 1.0; +inactive-dim = 0.0; focus-exclude = [ "class_g = 'Cairo-clock'" ]; -inactive-dim-fixed = 1.0 -opacity-rule = [] +inactive-dim-fixed = 1.0; +opacity-rule = [ + "90:class_g = 'tabbed' && focused", + "80:class_g = 'tabbed' && !focused" +]; ################################# # Corners # diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc @@ -6,19 +6,19 @@ UMM="${XDG_CONFIG_HOME:-$HOME/.config}"/x11/xmodmap [ -f "$UMM" ] && xmodmap "$UMM" # Autostart: -setsid -f xsetroot -cursor_name left_ptr -setsid -f xautolock -time 10 -locker slock +#setsid xsetroot -cursor_name left_ptr +#setsid xautolock -time 10 -locker slock [ -f "$HOME/.cache/theme" ] || theme-sel -pidof -x "dunst" || setsid -f "dunst" -pidof -x "picom" || setsid -f "picom" -#pidof -x "picom" || setsid -f "picom --experimental-backends" -pidof -x "bg-gen" || setsid -f "bg-gen" -pidof -x "dwm-bar" || setsid -f "dwm-bar" -pidof -x "pipewire" || setsid -f "pipewire" -pidof -x "pipewire-alsa" || setsid -f "pipewire-alsa" -pidof -x "pipewire-jack" || setsid -f "pipewire-jack" -pidof -x "pipewire-pulse" || setsid -f "pipewire-pulse" -pidof -x "pipewire-media-session" || setsid -f "pipewire-media-session" +#pidof "dunst" || setsid "dunst" +pidof "picom" || setsid "picom" +#pidof "picom" || setsid "picom --experimental-backends" +pidof "bg-gen" || setsid "bg-gen" +pidof "dwm-bar" || setsid "dwm-bar" +pidof "pipewire" || setsid "pipewire" +pidof "pipewire-alsa" || setsid "pipewire-alsa" +pidof "pipewire-jack" || setsid "pipewire-jack" +pidof "pipewire-pulse" || setsid "pipewire-pulse" +pidof "pipewire-media-session" || setsid "pipewire-media-session" # Monitors: i=0 @@ -44,5 +44,6 @@ xmodmap -e "keycode 108 = p P Arabic_hah bracketleft" xmodmap -e "add mod1 = Alt_L Meta_L" # Add -f after startx to experience dwm in floating mode. +#dwm ssh-agent dwm "$@" -ssh-add +#ssh-add