1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-25 20:31:50 +08:00

Compare commits

..

No commits in common. "7f19ec74fb39a17f616523cfcc031676d4405d29" and "6d7afd19bac412bb79e66cdff826b42e866ba78e" have entirely different histories.

8 changed files with 53 additions and 10 deletions

View File

@ -1 +0,0 @@
custom.d/

View File

@ -0,0 +1,4 @@
# vim: filetype=swayconfig
include /usr/local/etc/sway/config.d/*
exec /usr/libexec/polkit-gnome-authentication-agent-1

View File

@ -0,0 +1,14 @@
# vim: filetype=swayconfig
input type:mouse {
accel_profile flat
pointer_accel -0.3
}
input type:touchpad {
accel_profile adaptive
natural_scroll enabled
tap enabled
dwt enabled
# events disabled_on_external_mouse
}

View File

@ -0,0 +1,28 @@
output * adaptive_sync on
# 75hz monitor
output 'Lectron Company Ltd LECOO M2412HL GG30A137' mode 2560x1440@75Hz
output 'Lectron Company Ltd LECOO M2412HL GG30A137' pos 0 500
output 'Lectron Company Ltd LECOO M2412HL GG30A137' subpixel rgb
# output 'Lectron Company Ltd LECOO M2412HL GG30A137' max_render_time 5
# lab screen
# output "XMI Redmi 27 NU 3948622WH08F4" mode --custom 2560x1440@60Hz
# output "XMI Redmi 27 NU 3948622WH08F4" scale 1.5
output "XMI Redmi 27 NU 3948622WH08F4" transform 90
output "XMI Redmi 27 NU 3948622WH08F4" pos 2560 0
output "XMI Redmi 27 NU 3948622WH08F4" subpixel rgb
# output "XMI Redmi 27 NU 3948622WH08F4" max_render_time 3
# output "XMI Redmi 27 NU 3948622WH08F4" render_bit_depth 10
# laptop screen
output 'Thermotrex Corporation TL160ADMP03-0 Unknown' subpixel rgb
# output 'Thermotrex Corporation TL160ADMP03-0 Unknown' mode 2560x1600@60.000Hz
# output 'Thermotrex Corporation TL160ADMP03-0 Unknown' max_render_time 5
output 'Thermotrex Corporation TL160ADMP03-0 Unknown' mode 2560x1600@60.000Hz
# output 'Thermotrex Corporation TL160ADMP03-0 Unknown' max_render_time 8
# output 'Thermotrex Corporation TL160ADMP03-0 Unknown' render_bit_depth 10
# TV at home
output 'Unknown HUAWEI INC 0x00000000' mode 3840x2160@60.000Hz
output 'Unknown HUAWEI INC 0x00000000' scale 2

View File

@ -39,10 +39,10 @@ exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob
bindsym XF86AudioRaiseVolume exec wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 2%+ && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1| awk '{print substr($5, 1, length($5)-1)}' > $SWAYSOCK.wob
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | awk '{print substr($5, 1, length($5)-1)}' > $SWAYSOCK.wob
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && ~/.config/sway/scripts/getmute.sh > $SWAYSOCK.wob
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 && xbacklight -get > $SWAYSOCK.wob
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 && xbacklight -get > $SWAYSOCK.wob
bindsym XF86KbdBrightnessUp exec xbacklight -ctrl asus::kbd_backlight -inc 25
bindsym XF86KbdBrightnessDown exec xbacklight -ctrl asus::kbd_backlight -dec 25
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 && xbacklight -get | cut -d'.' -f1 > $SWAYSOCK.wob
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 && xbacklight -get | cut -d'.' -f1 > $SWAYSOCK.wob
bindsym XF86KbdBrightnessUp exec xbacklight -ctrl asus::kbd_backlight -inc 33
bindsym XF86KbdBrightnessDown exec xbacklight -ctrl asus::kbd_backlight -dec 33
bindsym XF86AudioPause exec 'playerctl pause'
bindsym XF86AudioPlay exec 'playerctl play'

View File

@ -13,5 +13,3 @@ bindswitch --reload --locked lid:off output $laptop enable
#workspace_auto_back_and_forth yes
force_display_urgency_hint 500 ms
smart_borders no_gaps
seat * xcursor_theme Adwaita

View File

@ -4,7 +4,7 @@ Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK -t 6h
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target

4
.zshrc
View File

@ -24,8 +24,8 @@ zinit wait lucid for \
agkozak/zsh-z \
zpm-zsh/colors \
zpm-zsh/colorize \
rywng/shortify.zsh \
rywng/kitty-zsh
juancldcmt/shortify.zsh \
juancldcmt/kitty-zsh
zinit ice wait lucid atinit"bindkey '' autosuggest-execute" atload'_zsh_autosuggest_start'
zinit light zsh-users/zsh-autosuggestions