mirror of
https://github.com/rywng/dotfiles.git
synced 2024-10-30 15:41:50 +08:00
Misc changes
This commit is contained in:
parent
7dd1f3e908
commit
c72cb6d4eb
@ -1 +1,5 @@
|
|||||||
include ~/.config/sway/config.d/*
|
include ~/.config/sway/config.d/exec
|
||||||
|
include ~/.config/sway/config.d/display
|
||||||
|
include ~/.config/sway/config.d/theme
|
||||||
|
include ~/.config/sway/config.d/keybinds
|
||||||
|
include ~/.config/sway/config.d/custom
|
||||||
|
36
.config/sway/config.d/custom.d/input-settings
Normal file
36
.config/sway/config.d/custom.d/input-settings
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# vim: filetype=i3config
|
||||||
|
|
||||||
|
# swap caps and ctrl on Thinkpad keyboard
|
||||||
|
input 1:1:AT_Translated_Set_2_keyboard {
|
||||||
|
xkb_options "ctrl:swapcaps"
|
||||||
|
}
|
||||||
|
|
||||||
|
# dugod keyboard and 2.4G variant
|
||||||
|
input 12136:130:Hoksi_Technology_DURGOD_Taurus_K320 {
|
||||||
|
# swap caps with ctrl, and lalt with lwin
|
||||||
|
xkb_options "ctrl:swapcaps, altwin:swap_lalt_lwin"
|
||||||
|
}
|
||||||
|
|
||||||
|
input 12136:32832:Hoksi_Technology_DURGOD_Infinite_Link {
|
||||||
|
xkb_options "ctrl:swapcaps, altwin:swap_lalt_lwin"
|
||||||
|
}
|
||||||
|
|
||||||
|
input type:mouse {
|
||||||
|
accel_profile flat
|
||||||
|
}
|
||||||
|
|
||||||
|
# always disable touchpad
|
||||||
|
input type:touchpad {
|
||||||
|
events disabled
|
||||||
|
# accel_profile adaptive
|
||||||
|
# pointer_accel -0.3
|
||||||
|
# natural_scroll enabled
|
||||||
|
# tap enabled
|
||||||
|
# dwt enabled
|
||||||
|
# events disabled_on_external_mouse
|
||||||
|
}
|
||||||
|
|
||||||
|
input 2:14:ETPS/2_Elantech_TrackPoint {
|
||||||
|
accel_profile adaptive
|
||||||
|
pointer_accel 0
|
||||||
|
}
|
8
.config/sway/config.d/custom.d/output
Normal file
8
.config/sway/config.d/custom.d/output
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
output DP-2 mode 2560x1440@74.968Hz
|
||||||
|
output DP-2 subpixel rgb
|
||||||
|
output * adaptive_sync on
|
||||||
|
output eDP-1 subpixel rgb
|
||||||
|
|
||||||
|
# TV at home
|
||||||
|
output 'Unknown HUAWEI INC 0x00000000' mode 3840x2160@60.000Hz
|
||||||
|
output 'Unknown HUAWEI INC 0x00000000' scale 2
|
@ -1,8 +1,5 @@
|
|||||||
# vim: filetype=i3config
|
# vim: filetype=i3config
|
||||||
|
|
||||||
# wallpaper
|
|
||||||
output * bg $(find -L ~/Pictures/Wallpapers/dark -type f | shuf -n1) fill
|
|
||||||
|
|
||||||
# laptop output mode
|
# laptop output mode
|
||||||
set $laptop eDP-1
|
set $laptop eDP-1
|
||||||
bindswitch --reload --locked lid:on output $laptop disable
|
bindswitch --reload --locked lid:on output $laptop disable
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# vim: filetype=i3config
|
# vim: filetype=i3config
|
||||||
|
|
||||||
##starting userspace software
|
##starting userspace software
|
||||||
|
exec_always sh -c ~/.config/sway/scripts/update-wallpaper.sh
|
||||||
exec mkfifo /tmp/kitty
|
exec mkfifo /tmp/kitty
|
||||||
exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500
|
exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500
|
||||||
exec light -S 70
|
exec light -S 70
|
||||||
|
@ -22,6 +22,17 @@ bindsym $mod+Ctrl+space exec fcitx5-remote -t
|
|||||||
# Change theme
|
# Change theme
|
||||||
bindsym $mod+Ctrl+t exec ~/.config/sway/scripts/themes.sh
|
bindsym $mod+Ctrl+t exec ~/.config/sway/scripts/themes.sh
|
||||||
|
|
||||||
|
# bind gesture
|
||||||
|
bindgesture swipe:3:right workspace prev
|
||||||
|
bindgesture swipe:3:left workspace next
|
||||||
|
|
||||||
|
# use mouse wheel to switch workspaces
|
||||||
|
bindsym --whole-window $mod+button4 workspace prev
|
||||||
|
bindsym --whole-window $mod+button5 workspace next
|
||||||
|
# side buttons
|
||||||
|
bindsym --whole-window $mod+button8 workspace prev
|
||||||
|
bindsym --whole-window $mod+button9 workspace next
|
||||||
|
|
||||||
# bind fn keys
|
# bind fn keys
|
||||||
bindsym XF86AudioMicMute exec amixer set Capture toggle
|
bindsym XF86AudioMicMute exec amixer set Capture toggle
|
||||||
exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob
|
exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob
|
||||||
|
@ -12,7 +12,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i $command ~/.config/kitty/kitty.conf
|
sed -i $command ~/.config/kitty/kitty.conf
|
||||||
sed -i $command ~/.config/sway/config.d/display
|
|
||||||
sed -i $command ~/.config/sway/config.d/theme
|
sed -i $command ~/.config/sway/config.d/theme
|
||||||
sed -i $command ~/.config/swaync/style.css
|
sed -i $command ~/.config/swaync/style.css
|
||||||
sed -i $command ~/.config/waybar/style.css
|
sed -i $command ~/.config/waybar/style.css
|
||||||
@ -24,9 +23,17 @@ swaync-client -rs &
|
|||||||
if [ $scheme = "light" ]; then
|
if [ $scheme = "light" ]; then
|
||||||
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/light.conf" &
|
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/light.conf" &
|
||||||
mv ~/.config/zathura/zathurarc.light ~/.config/zathura/zathurarc
|
mv ~/.config/zathura/zathurarc.light ~/.config/zathura/zathurarc
|
||||||
|
|
||||||
|
# set wallpaper location
|
||||||
|
unlink ~/.config/sway/Wallpaper
|
||||||
|
ln -s ~/Pictures/Wallpapers/light ~/.config/sway/Wallpaper
|
||||||
else
|
else
|
||||||
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/dark.conf" &
|
kitty -1 sh -c "kitty @ set-colors -a -c ~/.config/kitty/themes/dark.conf" &
|
||||||
mv ~/.config/zathura/zathurarc.dark ~/.config/zathura/zathurarc
|
mv ~/.config/zathura/zathurarc.dark ~/.config/zathura/zathurarc
|
||||||
|
|
||||||
|
# set dark wallpaper
|
||||||
|
unlink ~/.config/sway/Wallpaper
|
||||||
|
ln -s ~/Pictures/Wallpapers/dark ~/.config/sway/Wallpaper
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sway reload
|
sway reload
|
||||||
|
13
.config/sway/scripts/update-wallpaper.sh
Executable file
13
.config/sway/scripts/update-wallpaper.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export PATH="${PATH}:${HOME}/.local/bin"
|
||||||
|
export XDG_RUNTIME_DIR=/run/user/1000
|
||||||
|
export XDG_CACHE_HOME=$HOME/.cache
|
||||||
|
|
||||||
|
if ! pidof swww-daemon > /dev/null
|
||||||
|
then
|
||||||
|
swww init
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
swww img $(find -L ~/.config/sway/Wallpaper/ -type f | shuf -n1) -t wave --transition-fps 60 --transition-duration 5 --transition-wave 16,16
|
@ -37,4 +37,7 @@ set render-loading-fg "#3c3836" # fg
|
|||||||
set recolor-lightcolor "#fbf1c7" # bg
|
set recolor-lightcolor "#fbf1c7" # bg
|
||||||
set recolor-darkcolor "#3c3836" # fg
|
set recolor-darkcolor "#3c3836" # fg
|
||||||
set recolor "true"
|
set recolor "true"
|
||||||
# set recolor-keephue true # keep original color
|
set recolor-keephue true # keep original color
|
||||||
|
|
||||||
|
# selection clipboard
|
||||||
|
set selection-clipboard clipboard
|
||||||
|
4
.zshrc
4
.zshrc
@ -22,8 +22,8 @@ zinit ice lucid wait
|
|||||||
zinit light juancldcmt/colorize
|
zinit light juancldcmt/colorize
|
||||||
zinit ice lucid wait
|
zinit ice lucid wait
|
||||||
zinit light juancldcmt/shortify.zsh
|
zinit light juancldcmt/shortify.zsh
|
||||||
zinit ice lucid wait
|
# zinit ice lucid wait
|
||||||
zinit light juancldcmt/direnv.zsh
|
# zinit light juancldcmt/direnv.zsh
|
||||||
|
|
||||||
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
|
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
|
||||||
zinit light sindresorhus/pure
|
zinit light sindresorhus/pure
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 183 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.2 MiB |
Loading…
Reference in New Issue
Block a user