1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

Add box shadows to grimshot and tmux colorscheme

This commit is contained in:
juan 2022-04-16 12:46:50 +08:00
parent 9959905893
commit 92797eb03d
6 changed files with 34 additions and 15 deletions

View File

@ -18,7 +18,7 @@ exec playerctld daemon
#my keybinds #my keybinds
bindsym $mod+Ctrl+l exec ~/.config/sway/scripts/logout.sh bindsym $mod+Ctrl+l exec ~/.config/sway/scripts/logout.sh
bindsym $mod+Print exec ~/.config/sway/scripts/grimshot-ui.sh && \ bindsym $mod+Print exec ~/.config/sway/scripts/grimshot-ui.sh
bindsym $mod+n exec swaync-client -t -sw bindsym $mod+n exec swaync-client -t -sw
#set gtk theme #set gtk theme
@ -29,13 +29,13 @@ exec_always {
gsettings set $gnome-schema icon-theme 'Papirus-Light' gsettings set $gnome-schema icon-theme 'Papirus-Light'
gsettings set $gnome-schema cursor-theme 'Adwaita' gsettings set $gnome-schema cursor-theme 'Adwaita'
gsettings set $gnome-schema font-name 'ibm-plex 12' gsettings set $gnome-schema font-name 'ibm-plex 12'
export XDG_CURRENT_DESKTOP=Unity gsettings set org.gtk.Settings.FileChooser startup-mode cwd
} }
#set colour #set colour
#color class border backgr. text indicator child_border #color class border backgr. text indicator child_border
client.focused #87c095 #2a2f33 #bfddb2 #415c6d #7fbbb3 client.focused #87c095 #2a2f33 #bfddb2 #415c6d #d39bb6
client.focused_inactive #3f464b #2a2f33 #bfddb2 #415c6d #3f464b client.focused_inactive #3f464b #2a2f33 #bfddb2 #415c6d #3f464b
client.unfocused #3f464b #2a2f33 #bfddb2 #415c6d #3f464b client.unfocused #3f464b #2a2f33 #bfddb2 #415c6d #3f464b
client.urgent #d76e6e #2a2f33 #bfddb2 #415c6d #e68183 client.urgent #d76e6e #2a2f33 #bfddb2 #415c6d #e68183

View File

@ -0,0 +1,11 @@
#!/bin/sh
background_color=#2a2f33
convert $1 \
\( -clone 0 -background black -shadow 40x5+12+16 \) \
\( -clone 0 -background black -shadow 40x5-4-4 \) \
\( -clone 0 -background black -shadow 40x12+12-4 \) \
\( -clone 0 -background black -shadow 40x12-4+16 \) \
-reverse -background $background_color -layers merge +repage \
$2

View File

@ -3,4 +3,11 @@
action=`echo "copy\nsave" | wofi -d -Oalphabetical --prompt="Select your action"` action=`echo "copy\nsave" | wofi -d -Oalphabetical --prompt="Select your action"`
target=`echo "active\nscreen\noutput\narea\nwindow" | wofi -d -Oalphabetical --prompt="Select the target"` target=`echo "active\nscreen\noutput\narea\nwindow" | wofi -d -Oalphabetical --prompt="Select the target"`
~/.config/sway/scripts/grimshot.sh --notify $action $target test $action || exit
test $target || exit
test -d /tmp/share/screenshot || mkdir -p /tmp/share/screenshots
# TODO, add box shadows
XDG_SCREENSHOTS_DIR=/tmp/share/screenshots ~/.config/sway/scripts/grimshot.sh --notify $action $target

View File

@ -32,6 +32,7 @@ fi
ACTION=${1:-usage} ACTION=${1:-usage}
SUBJECT=${2:-screen} SUBJECT=${2:-screen}
FILE=${3:-$(getTargetDirectory)/$(date +'%y%m%d%H%M.png')} FILE=${3:-$(getTargetDirectory)/$(date +'%y%m%d%H%M.png')}
SCRIPT_LOC=~/.config/sway/scripts/
if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then
echo "Usage:" echo "Usage:"
@ -99,7 +100,8 @@ takeScreenshot() {
elif [ -z "$GEOM" ]; then elif [ -z "$GEOM" ]; then
grim "$FILE" || die "Unable to invoke grim" grim "$FILE" || die "Unable to invoke grim"
else else
grim -g "$GEOM" "$FILE" || die "Unable to invoke grim" grim -g "$GEOM" "$FILE" || die "Unable to invoke grim" && \
$SCRIPT_LOC/boxshadow.sh "$FILE" "$FILE" || die "Unable to save screenshot"
fi fi
} }

View File

@ -10,7 +10,7 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
set -g status-position bottom set -g status-position bottom
set -g status-justify centre set -g status-justify centre
set -g status-style "bg=#1e2132" set -g status-style "bg=#474f54"
set -g window-style "" set -g window-style ""
set -g window-active-style "" set -g window-active-style ""
@ -21,21 +21,21 @@ module_left_2="#{client_width}x#{client_height}"
module_right_1="%a %d %b" module_right_1="%a %d %b"
module_right_2="%R %Z" module_right_2="%R %Z"
set -g status-left " #[fg=#c6c8d1]$module_left_1 #[fg=#6b7089]$module_left_2" set -g status-left " #[fg=#bfddb2]$module_left_1 #[fg=#767b82]$module_left_2"
set -g status-left-style "" set -g status-left-style ""
set -g status-left-length 50 set -g status-left-length 50
set -g status-right "$module_right_1 #[fg=#c6c8d1]$module_right_2 " set -g status-right "$module_right_1 #[fg=#bfddb2]$module_right_2 "
set -g status-right-style "fg=#6b7089" set -g status-right-style "fg=#767b82"
set -g status-right-length 25 set -g status-right-length 25
set -g window-status-current-style "bold" set -g window-status-current-style "bold"
set -g window-status-style "fg=#6b7089" set -g window-status-style "fg=#767b82"
set -g window-status-format " #[fg=#c6c8d1]#{?#{==:#W,fish},#{b:pane_current_path},#W}#F " set -g window-status-format " #[fg=#bfddb2]#{?#{==:#W,fish},#{b:pane_current_path},#W}#F "
set -g window-status-current-format " #[fg=#c6c8d1]#{?#{==:#W,fish},#{b:pane_current_path},#W}#F " set -g window-status-current-format " #[fg=#bfddb2]#{?#{==:#W,fish},#{b:pane_current_path},#W}#F "
set -g window-status-separator "" set -g window-status-separator ""
set -g pane-active-border-style "fg=#6b7089" set -g pane-active-border-style "fg=#767b82"
set -g pane-border-style "fg=#6b7089" set -g pane-border-style "fg=#767b82"
run '~/.tmux/plugins/tpm/tpm' run '~/.tmux/plugins/tpm/tpm'

1
.zshrc
View File

@ -112,7 +112,6 @@ export TASKRC=$HOME/.config/task/taskrc
export WINEPREFIX=$HOME/.config/wine export WINEPREFIX=$HOME/.config/wine
export XDG_CACHE_HOME=$HOME/.cache export XDG_CACHE_HOME=$HOME/.cache
export XDG_CONFIG_HOME=$HOME/.config export XDG_CONFIG_HOME=$HOME/.config
export XDG_SCREENSHOTS_DIR=$HOME/Pictures/Screenshots
#settings for software #settings for software
export FZF_DEFAULT_OPTS="--reverse --cycle --height=40% --border sharp --prompt=🔎" export FZF_DEFAULT_OPTS="--reverse --cycle --height=40% --border sharp --prompt=🔎"