Browse Source

Merge nzxt with origin/master

red-hat-laptop
Kevin Mok 5 years ago
parent
commit
dd5b0c8179
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 2
      dot_Xmodmap-laptop
  2. 8
      dot_Xresources.tmpl
  3. 4
      dot_config/fish/config.fish.tmpl
  4. 17
      dot_config/i3/config.tmpl
  5. 2
      dot_config/i3blocks/scripts/executable_wifi
  6. 1
      dot_taskopenrc
  7. 7
      scripts/executable_xmodmap-custom
  8. 11
      scripts/executable_xmodmap-custom.tmpl

2
dot_Xmodmap-laptop

@ -5,3 +5,5 @@ keycode 110 = Delete
keycode 22 = Home keycode 22 = Home
keycode 119 = End keycode 119 = End
pointer = 1 2 3 4 5 6 7 8 9 10 11 12

8
dot_Xresources.tmpl

@ -1,7 +1,12 @@
/* dpi [[[ */ /* dpi [[[ */
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
! Xft.dpi: 240
Xft.dpi: 230
{{ else }}
Xft.dpi: 135 Xft.dpi: 135
! Xft.dpi: 170 ! Xft.dpi: 170
{{ end }}
Xft.autohint: 0 Xft.autohint: 0
Xft.lcdfilter: lcddefault Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull Xft.hintstyle: hintfull
@ -14,7 +19,8 @@ Xft.rgba: rgb
/* font [[[ */ /* font [[[ */
{{ if eq .chezmoi.fullHostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11.5
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12
{{ else }} {{ else }}
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=15 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=15

4
dot_config/fish/config.fish.tmpl

@ -30,7 +30,9 @@ set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64 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 PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
set -x HASTE_SERVER https://pste.gq set -x HASTE_SERVER https://pste.gq
{{ if eq .chezmoi.fullHostname "nzxt" }}
set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1) set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
{{ end }}
{{ if eq .linux_os "termux" }} {{ if eq .linux_os "termux" }}
# set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char # set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char
@ -49,7 +51,7 @@ xset r rate $XSET_DELAY $XSET_RATE
{{ end }} {{ end }}
# set -U BROWSER "chromium" # set -U BROWSER "chromium"
set -U BROWSER "firefox"
set -xU BROWSER "firefox"
# ]]] universal var's # # ]]] universal var's #

17
dot_config/i3/config.tmpl

@ -81,8 +81,8 @@ bindsym Print --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'x
bindsym Control+Print --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym Control+Print --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
{{ else }} {{ else }}
bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE
bindsym $mod+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'"
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'"
{{ end }} {{ end }}
# ]]] app shortcuts # # ]]] app shortcuts #
@ -115,8 +115,8 @@ bindsym Shift+F0 exec xbacklight -set 100
bindsym Control+$mod+plus exec xbacklight -inc 2 bindsym Control+$mod+plus exec xbacklight -inc 2
bindsym Control+$mod+minus exec xbacklight -dec 2 bindsym Control+$mod+minus exec xbacklight -dec 2
bindsym $mod+w exec sudo systemctl start netctl-auto@wlp3s0.service
bindsym $mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service
bindsym Control+$mod+w exec sudo systemctl start netctl-auto@wlp3s0.service
bindsym Control+$mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service
{{ end }} {{ end }}
# ]]] backlight # # ]]] backlight #
@ -269,13 +269,16 @@ bindsym Control+$mod+a floating enable; resize set 400px 150px; move absolute po
set $make_st_script "/home/kevin/st/make-st.sh" set $make_st_script "/home/kevin/st/make-st.sh"
# test # test
{{ if eq .chezmoi.fullHostname "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
{{ else }}
bindsym Control+$mod+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script bindsym Control+$mod+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script
bindsym Control+$mod+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script bindsym Control+$mod+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script
{{ end }}
bindsym $mod+r exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/editing") && $make_st_script bindsym $mod+r exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/editing") && $make_st_script
bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/non-editing") && $make_st_script bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/non-editing") && $make_st_script
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
bindsym Control+$mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg
{{ end }}
# ]]] backgrounds # # ]]] backgrounds #

2
dot_config/i3blocks/scripts/executable_wifi

@ -29,7 +29,7 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}"
#------------------------------------------------------------------------ #------------------------------------------------------------------------
QUALITY=$(sudo grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
# echo $QUALITY # echo $QUALITY
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':') W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}') W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')

1
dot_taskopenrc

@ -1,5 +1,6 @@
# BROWSER='xdg-open $FILE &>/dev/null' # BROWSER='xdg-open $FILE &>/dev/null'
BROWSER='firefox'
EDITOR='nvim' EDITOR='nvim'
#FILE_CMD='xdg-open' #FILE_CMD='xdg-open'
TASKBIN='task' TASKBIN='task'

7
scripts/executable_xmodmap-custom

@ -1,7 +0,0 @@
#!/bin/bash
DELAY=200
RATE=90
xmodmap ~/.Xmodmap &> /dev/null
xset r rate $DELAY $RATE &> /dev/null

11
scripts/executable_xmodmap-custom.tmpl

@ -0,0 +1,11 @@
#!/bin/bash
DELAY=200
RATE=90
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
xmodmap ~/.Xmodmap-laptop &> /dev/null
{{ else }}
xmodmap ~/.Xmodmap &> /dev/null
{{ end }}
xset r rate $DELAY $RATE &> /dev/null
Loading…
Cancel
Save