mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 19:01:50 +08:00
Compare commits
2 Commits
f3507022b6
...
6d7afd19ba
Author | SHA1 | Date | |
---|---|---|---|
|
6d7afd19ba | ||
|
1eb781ce84 |
@ -1,4 +1,4 @@
|
|||||||
# vim: filetype=swayconfig
|
# vim: filetype=swayconfig
|
||||||
|
|
||||||
include /etc/sway/config.d/*
|
include /usr/local/etc/sway/config.d/*
|
||||||
exec /usr/libexec/polkit-gnome-authentication-agent-1
|
exec /usr/libexec/polkit-gnome-authentication-agent-1
|
@ -7,13 +7,13 @@ output 'Lectron Company Ltd LECOO M2412HL GG30A137' subpixel rgb
|
|||||||
# output 'Lectron Company Ltd LECOO M2412HL GG30A137' max_render_time 5
|
# output 'Lectron Company Ltd LECOO M2412HL GG30A137' max_render_time 5
|
||||||
|
|
||||||
# lab screen
|
# lab screen
|
||||||
output "XMI Redmi 27 NU 3948622WH08F4" mode --custom 2560x1440@60Hz
|
# 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" scale 1.5
|
||||||
output "XMI Redmi 27 NU 3948622WH08F4" transform 90
|
output "XMI Redmi 27 NU 3948622WH08F4" transform 90
|
||||||
output "XMI Redmi 27 NU 3948622WH08F4" pos 2560 0
|
output "XMI Redmi 27 NU 3948622WH08F4" pos 2560 0
|
||||||
output "XMI Redmi 27 NU 3948622WH08F4" subpixel rgb
|
output "XMI Redmi 27 NU 3948622WH08F4" subpixel rgb
|
||||||
output "XMI Redmi 27 NU 3948622WH08F4" max_render_time 3
|
# output "XMI Redmi 27 NU 3948622WH08F4" max_render_time 3
|
||||||
output "XMI Redmi 27 NU 3948622WH08F4" render_bit_depth 10
|
# output "XMI Redmi 27 NU 3948622WH08F4" render_bit_depth 10
|
||||||
|
|
||||||
# laptop screen
|
# laptop screen
|
||||||
output 'Thermotrex Corporation TL160ADMP03-0 Unknown' subpixel rgb
|
output 'Thermotrex Corporation TL160ADMP03-0 Unknown' subpixel rgb
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
# vim: filetype=swayconfig
|
|
||||||
|
|
||||||
# laptop output mode
|
|
||||||
set $laptop eDP-1
|
|
||||||
bindswitch --reload --locked lid:on output $laptop disable
|
|
||||||
bindswitch --reload --locked lid:off output $laptop enable
|
|
||||||
|
|
||||||
# bar
|
|
||||||
# bar swaybar_command waybar
|
|
||||||
|
|
||||||
#workspace_auto_back_and_forth yes
|
|
||||||
force_display_urgency_hint 500 ms
|
|
||||||
smart_borders no_gaps
|
|
@ -4,7 +4,5 @@
|
|||||||
# exec_always sh -c ~/.config/sway/scripts/update-wallpaper.sh
|
# exec_always sh -c ~/.config/sway/scripts/update-wallpaper.sh
|
||||||
exec mkfifo /tmp/kitty
|
exec mkfifo /tmp/kitty
|
||||||
exec wlsunset -s 19:00 -S 07:00 -d 1800
|
exec wlsunset -s 19:00 -S 07:00 -d 1800
|
||||||
exec light -S 70
|
exec xbacklight -set 70
|
||||||
exec playerctld daemon
|
exec playerctld daemon
|
||||||
|
|
||||||
include /usr/local/etc/sway/config.d/*
|
|
||||||
|
@ -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 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 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 XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && ~/.config/sway/scripts/getmute.sh > $SWAYSOCK.wob
|
||||||
bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
|
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 && xbacklight -get | cut -d'.' -f1 > $SWAYSOCK.wob
|
||||||
bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
|
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 && xbacklight -get | cut -d'.' -f1 > $SWAYSOCK.wob
|
||||||
bindsym XF86KbdBrightnessUp exec light -s sysfs/leds/asus::kbd_backlight -S 67
|
bindsym XF86KbdBrightnessUp exec xbacklight -ctrl asus::kbd_backlight -inc 33
|
||||||
bindsym XF86KbdBrightnessDown exec light -s sysfs/leds/asus::kbd_backlight -S 0
|
bindsym XF86KbdBrightnessDown exec xbacklight -ctrl asus::kbd_backlight -dec 33
|
||||||
|
|
||||||
bindsym XF86AudioPause exec 'playerctl pause'
|
bindsym XF86AudioPause exec 'playerctl pause'
|
||||||
bindsym XF86AudioPlay exec 'playerctl play'
|
bindsym XF86AudioPlay exec 'playerctl play'
|
||||||
|
@ -1,3 +1,15 @@
|
|||||||
# vim: filetype=swayconfig
|
# vim: filetype=swayconfig
|
||||||
|
|
||||||
include ~/.config/sway/conf.d/themes/dark
|
include ~/.config/sway/conf.d/themes/dark
|
||||||
|
|
||||||
|
# laptop output mode
|
||||||
|
set $laptop eDP-1
|
||||||
|
bindswitch --reload --locked lid:on output $laptop disable
|
||||||
|
bindswitch --reload --locked lid:off output $laptop enable
|
||||||
|
|
||||||
|
# bar
|
||||||
|
# bar swaybar_command waybar
|
||||||
|
|
||||||
|
#workspace_auto_back_and_forth yes
|
||||||
|
force_display_urgency_hint 500 ms
|
||||||
|
smart_borders no_gaps
|
||||||
|
10
.config/systemd/user/ssh-agent.service
Normal file
10
.config/systemd/user/ssh-agent.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
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
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
6
.config/xdg-desktop-portal-wlr/config
Normal file
6
.config/xdg-desktop-portal-wlr/config
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[screencast]
|
||||||
|
max_fps=60
|
||||||
|
exec_before=swaynag -m "Screen sharing enabled" -e bottom --background b16286 --text dbdbb2 --button-background b16286 --button-text ebdbb2 --border ebdbb2 --button-border-size 2
|
||||||
|
; exec_after=enable_notifications.sh
|
||||||
|
chooser_type=simple
|
||||||
|
chooser_cmd=slurp -f %o -or
|
Loading…
Reference in New Issue
Block a user