This commit is contained in:
David Chen 2019-09-13 09:14:01 +08:00
parent 3707d2c3d5
commit 354d23f3f8
8 changed files with 25 additions and 6 deletions

View file

@ -71,6 +71,7 @@ opacity-rule = [
"60:name *?= 'Screenkey'",
#"99:class_g = 'Darktable'",
"50:class_g = 'Dmenu'",
"100:class_g = 'google-chrome-stable'",
#"99:name *?= 'Event'",
#"99:class_g = 'Firefox'",
#"99:class_g = 'GIMP'",

View file

@ -0,0 +1,4 @@
# Defined in - @ line 1
function cdiff --description 'alias cdiff colordiff'
colordiff $argv;
end

View file

@ -1,4 +0,0 @@
# Defined in - @ line 1
function diff --description 'alias diff colordiff'
colordiff $argv;
end

4
fish/functions/fzf.fish Normal file
View file

@ -0,0 +1,4 @@
# Defined in - @ line 1
function fzf --description alias\ fzf\ fzf\ --preview\ \'head\ -100\ \{\}\'
command fzf --preview 'head -100 {}' $argv;
end

4
fish/functions/gc.fish Normal file
View file

@ -0,0 +1,4 @@
# Defined in - @ line 1
function gc --description 'alias gc git config credential.helper store'
git config credential.helper store $argv;
end

View file

@ -38,6 +38,10 @@ bindsym $mod+s exec --no-startup-id dmenu_recency
# launch categorized menu
bindsym $mod+z exec --no-startup-id morc_menu
# screenkey
bindsym $mod+ctrl+s exec bash ~/.config/i3/sk.sh
bindsym $mod+shift+ctrl+s exec killall screenkey
################################################################################################
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
################################################################################################
@ -372,7 +376,7 @@ bindsym $mod+m bar mode toggle
#############################
# Set inner/outer gaps
gaps inner 14
gaps inner 17
gaps outer -2
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.

6
i3/sk.sh Executable file
View file

@ -0,0 +1,6 @@
result=$(ps ax|grep -v grep|grep screenkey)
if [ "$result" == "" ]; then
eval "screenkey --bg-color white --font-color black &"
else
eval "killall screenkey"
fi

View file

@ -338,7 +338,7 @@ map gud cd /usr/share/doc
map gd cd /dev
map go cd /opt
map gv cd /var
map gm cd /media
map gm cd /run/media
map gM cd /mnt
map gr cd /