Update chezmoi data on laptop
This commit is contained in:
@@ -18,7 +18,7 @@ set -x GPG_TTY (tty)
|
||||
set -U fish_greeting
|
||||
|
||||
# spv
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ if eq .chezmoi.hostname "nzxt" }}
|
||||
set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
|
||||
set -U mfs_dir "/home/kevin/coding/mf-site"
|
||||
source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
|
||||
@@ -30,7 +30,7 @@ set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
|
||||
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
|
||||
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
|
||||
set -x HASTE_SERVER https://pste.gq
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ if eq .chezmoi.hostname "nzxt" }}
|
||||
set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
|
||||
{{ end }}
|
||||
|
||||
@@ -46,7 +46,7 @@ set SPACEFISH_VI_MODE_SUFFIX ''
|
||||
set -x PASSWORD_STORE_CLIP_TIME 120
|
||||
set -xU XSET_RATE 90
|
||||
set -xU XSET_DELAY 200
|
||||
{{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
|
||||
{{ if and (eq .chezmoi.hostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
|
||||
xset r rate $XSET_DELAY $XSET_RATE
|
||||
{{ end }}
|
||||
|
||||
@@ -72,7 +72,7 @@ chezmoi apply
|
||||
~/scripts/sync-shortcuts
|
||||
{{ end }}
|
||||
source ~/.config/fish/key_abbr.fish > /dev/null
|
||||
set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
|
||||
set -U fish_fxn_dir "{{ .chezmoi.homeDir }}/linux-config/dot_config/fish/functions"
|
||||
# set -U fish_fxn_dir "~/.config/fish/functions"
|
||||
abbr ff "cd $fish_fxn_dir"
|
||||
for fxn in (find $fish_fxn_dir -name '*.fish')
|
||||
@@ -124,8 +124,8 @@ abbr def "define"
|
||||
abbr ens "enable-site"
|
||||
abbr ev "evince-silent"
|
||||
# abbr fbg "find-bg"
|
||||
abbr fv "fzf-vim"
|
||||
abbr fvft "find-vim-filetype"
|
||||
abbr fzv "fzf-vim"
|
||||
# git [[[ #
|
||||
|
||||
abbr gcamp "git-amend-push"
|
||||
@@ -140,9 +140,9 @@ abbr grmb "git-delete-branch"
|
||||
abbr gro "git-replace-origin"
|
||||
|
||||
# ]]] git #
|
||||
abbr m "man-vim"
|
||||
abbr ma "man-vim task"
|
||||
abbr mat "math"
|
||||
abbr mn "man-vim"
|
||||
abbr pgr "grep-pdf"
|
||||
abbr pgrf "grep-pdf-file"
|
||||
abbr png "git-push-new-gitea"
|
||||
@@ -161,6 +161,7 @@ abbr thes "thesaurus"
|
||||
abbr ut "unix-timestamp"
|
||||
abbr uzr "unzip-rm"
|
||||
abbr vsnp "vim-snippet"
|
||||
abbr wga "wget-all"
|
||||
abbr xya "export-pkgs"
|
||||
|
||||
# school [[[ #
|
||||
@@ -178,4 +179,4 @@ abbr jct "java-compile-test"
|
||||
# ]]] fxn abbr's #
|
||||
|
||||
# task sync > /dev/null 2>&1
|
||||
~/scripts/xmodmap-custom
|
||||
# ~/scripts/xmodmap-custom
|
||||
|
||||
5
dot_config/fish/functions/wget-all.fish
Normal file
5
dot_config/fish/functions/wget-all.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
function wget-all
|
||||
for url in $argv
|
||||
wget $url
|
||||
end
|
||||
end
|
||||
@@ -4,7 +4,7 @@ set $term urxvt
|
||||
set $term_alt st
|
||||
# set $term st
|
||||
# set $term_alt urxvt
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
exec dunst
|
||||
exec compton
|
||||
exec imwheel
|
||||
@@ -58,7 +58,8 @@ bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail &&
|
||||
bindsym Mod4+$mod+o exec xset dpms force off
|
||||
# bindsym Mod4+p workspace $ws4; exec pgadmin3
|
||||
# bindsym Mod4+p exec pycharm
|
||||
bindsym Mod4+p exec passmenu
|
||||
bindsym Mod4+p exec $type_delay_cmd && xdotool type '.catch '
|
||||
bindsym Mod4+$mod+p exec passmenu
|
||||
# bindsym Mod4+$mod+p exec notify-send "ping" "$(ping -c 3 -W 1 8.8.8.8)"
|
||||
bindsym Mod4+q exec qdirstat
|
||||
bindsym Mod4+r exec $term -e ranger
|
||||
@@ -79,8 +80,8 @@ bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xc
|
||||
bindsym Control+Print --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
|
||||
{{ else }}
|
||||
bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE
|
||||
bindsym Control+$mod+p --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
|
||||
bindsym Control+Shift+p --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
|
||||
bindsym Control+p --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
|
||||
bindsym Control+$mod+p --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
|
||||
{{ end }}
|
||||
|
||||
# ]]] app shortcuts #
|
||||
@@ -98,7 +99,7 @@ bindsym $mod+Mod4+grave exec redshift -x
|
||||
|
||||
# backlight [[[ #
|
||||
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
bindsym Shift+F1 exec xbacklight -set 10
|
||||
bindsym Shift+F2 exec xbacklight -set 20
|
||||
bindsym Shift+F3 exec xbacklight -set 30
|
||||
@@ -108,7 +109,7 @@ bindsym Shift+F6 exec xbacklight -set 60
|
||||
bindsym Shift+F7 exec xbacklight -set 70
|
||||
bindsym Shift+F8 exec xbacklight -set 80
|
||||
bindsym Shift+F9 exec xbacklight -set 90
|
||||
bindsym Shift+F0 exec xbacklight -set 100
|
||||
bindsym Shift+F10 exec xbacklight -set 100
|
||||
|
||||
bindsym Control+$mod+plus exec xbacklight -inc 2
|
||||
bindsym Control+$mod+minus exec xbacklight -dec 2
|
||||
@@ -166,7 +167,7 @@ for_window [class="^.*"] border pixel 3
|
||||
# gaps bottom 0
|
||||
gaps inner 0
|
||||
gaps outer 0
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ if eq .chezmoi.hostname "nzxt" }}
|
||||
border_radius $border_radius
|
||||
{{ end }}
|
||||
|
||||
@@ -224,7 +225,7 @@ bindsym $mod+minus move workspace to output left
|
||||
bindsym $mod+plus move workspace to output right
|
||||
|
||||
# move focused window
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
bindsym Control+Shift+h move left 50px
|
||||
bindsym Control+Shift+j move down 50px
|
||||
bindsym Control+Shift+k move up 50px
|
||||
@@ -267,7 +268,7 @@ bindsym Control+$mod+a floating enable; resize set 400px 150px; move absolute po
|
||||
set $make_st_script "/home/kevin/st/make-st.sh"
|
||||
# test
|
||||
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
bindsym Control+Shift+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script
|
||||
bindsym Control+Shift+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script
|
||||
bindsym Control+$mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg
|
||||
@@ -283,10 +284,10 @@ bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Back
|
||||
# ws names [[[ #
|
||||
|
||||
set $ws1 "1 "
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
set $secondary "HDMI2"
|
||||
set $main "eDP1"
|
||||
{{ else if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ else if eq .chezmoi.hostname "nzxt" }}
|
||||
set $secondary "DVI-I-1"
|
||||
set $main "HDMI-0"
|
||||
{{ end }}
|
||||
@@ -335,8 +336,8 @@ for_window [class="ada-mario"] move absolute position 640 0
|
||||
set $ws6 "6 "
|
||||
workspace $ws6 output $secondary
|
||||
assign [class="Slack"] $ws6
|
||||
# bindsym Mod4+d workspace $ws6; exec discord
|
||||
bindsym Mod4+d workspace $ws6; exec riot-desktop
|
||||
bindsym Mod4+d workspace $ws6; exec discord
|
||||
# bindsym Mod4+d workspace $ws6; exec riot-desktop
|
||||
# bindsym Mod4+i workspace $ws6; exec firefox -new-window https://riot.im/app/#/home
|
||||
bindsym Mod4+k workspace $ws6; exec slack
|
||||
|
||||
@@ -476,7 +477,7 @@ set $bar_trans 00
|
||||
set $main_ws_trans aa
|
||||
bar {
|
||||
i3bar_command i3bar -t
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
font pango:$sb_font 17
|
||||
{{ else }}
|
||||
# font pango:$sb_font 17
|
||||
@@ -506,7 +507,7 @@ bar {
|
||||
|
||||
bar {
|
||||
output $secondary
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
font pango:$sb_font 18
|
||||
{{ else }}
|
||||
font pango:$sb_font 20
|
||||
|
||||
@@ -36,7 +36,7 @@ interval=60
|
||||
[calendar]
|
||||
interval=30
|
||||
label=
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ if eq .chezmoi.hostname "nzxt" }}
|
||||
DATEFMT=+%H:%M.%a-%m-%d
|
||||
{{ else }}
|
||||
DATEFMT=+%H:%M
|
||||
@@ -48,7 +48,7 @@ WIDTH=220
|
||||
|
||||
# ]]] time #
|
||||
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
[temperature]
|
||||
label=
|
||||
interval=5
|
||||
|
||||
@@ -15,7 +15,7 @@ color=#cbe4ff
|
||||
|
||||
# volume/spotify [[[ #
|
||||
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ if eq .chezmoi.hostname "nzxt" }}
|
||||
[volume]
|
||||
interval=once
|
||||
signal=1
|
||||
@@ -32,7 +32,7 @@ interval=5
|
||||
|
||||
# laptop [[[ #
|
||||
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
[battery]
|
||||
label=⚡
|
||||
interval=30
|
||||
@@ -54,7 +54,7 @@ interval=5
|
||||
[calendar]
|
||||
interval=30
|
||||
label=
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ if eq .chezmoi.hostname "nzxt" }}
|
||||
DATEFMT=+%H:%M
|
||||
{{ else }}
|
||||
DATEFMT=+%H:%M.%a-%m-%d
|
||||
@@ -67,7 +67,7 @@ WIDTH=220
|
||||
|
||||
# sys.monitoring [[[ #
|
||||
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ if eq .chezmoi.hostname "nzxt" }}
|
||||
# [wifi]
|
||||
# label=
|
||||
# instance=wlp4s0
|
||||
@@ -88,7 +88,7 @@ interval=5
|
||||
label=
|
||||
interval=5
|
||||
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
{{ if eq .chezmoi.hostname "nzxt" }}
|
||||
[memory]
|
||||
label=
|
||||
# color=#3da061
|
||||
|
||||
@@ -272,7 +272,7 @@ map <C-c> abort
|
||||
map <esc> change_mode normal
|
||||
map ~ set viewmode!
|
||||
|
||||
map i display_file
|
||||
# map id display_file
|
||||
map ? help
|
||||
map W display_log
|
||||
# map w taskview_open
|
||||
@@ -331,6 +331,7 @@ map <PAGEDOWN> move down=1 pages=True
|
||||
map <PAGEUP> move up=1 pages=True
|
||||
map <CR> move right=1
|
||||
map <DELETE> console delete
|
||||
map i console touch%space
|
||||
map <INSERT> console touch%space
|
||||
|
||||
# VIM-like
|
||||
@@ -699,7 +700,7 @@ map zr shell unzip %f && rm %f
|
||||
map e. open_with evince f
|
||||
map v. shell $EDITOR %f
|
||||
|
||||
source {{ .chezmoi.homedir }}/.config/ranger/key_mappings.conf
|
||||
source {{ .chezmoi.homeDir }}/.config/ranger/key_mappings.conf
|
||||
|
||||
map dg shell dragon-drag-and-drop -a -x %p
|
||||
# map <C-d> shell dragon-drag-and-drop -a -x %p
|
||||
|
||||
@@ -4,7 +4,7 @@ ui.track_notifications_enabled=false
|
||||
ui.show_friend_feed=false
|
||||
audio.play_bitrate_enumeration=4
|
||||
app.player.volume=40000
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
app.browser.zoom-level=300
|
||||
{{ else }}
|
||||
app.browser.zoom-level=75
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
||||
*/
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
{{ if eq .chezmoi.hostname "x1-carbon" }}
|
||||
static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=33:antialias=true:autohint=true";
|
||||
{{ else }}
|
||||
static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=20:antialias=true:autohint=true";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
set recolor true
|
||||
# set recolor true
|
||||
# black
|
||||
set recolor-darkcolor "#ffffff"
|
||||
set recolor-lightcolor "#000000"
|
||||
|
||||
Reference in New Issue
Block a user