Merge branch 'master' of ssh://dundun.ddns.net:222/sheldonmlee/dotfiles

This commit is contained in:
Sheldon Lee 2022-09-25 23:09:29 +08:00
commit d4bc5e7eed
4 changed files with 18 additions and 18 deletions

View File

@ -16,7 +16,7 @@ alias screenoff="sleep 2; xset dpms force off"
# sleep # sleep
alias suspend="slock & sleep 5 ; systemctl suspend" alias suspend="slock & sleep 5 ; systemctl suspend"
# screen brightness script # screen brightness script
alias brightness="$HOME/.config/wm_scripts/brightness.sh" alias brightness="$HOME/.config/scripts/wm/brightness.sh"
# #
# TUI # TUI

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
amixer set Capture toggle @> /dev/null
str=$(grep '\[on\]\|\[off\]' <<< $(amixer get Capture) | awk '{print $5}') pactl set-source-mute @DEFAULT_SOURCE@ toggle
echo $str str=$(pactl get-source-mute @DEFAULT_SOURCE@| awk '{print $2}')
notify-send "Microphone: $str"
[[ "$str" == "yes" ]] && notify-send "Microphone: off"
[[ "$str" == "no" ]] && notify-send "Microphone: on"

View File

@ -1,4 +1,4 @@
# Default config for sway # Default config for sway.conf
# #
# Copy this to ~/.config/sway/config and edit it to your liking. # Copy this to ~/.config/sway/config and edit it to your liking.
# #
@ -41,15 +41,10 @@ set $screenshot "~/.config/scripts/wm/screenshot.sh"
### Monitor config ### Monitor config
# #
# Monitor layout # Monitor layout
set $mon1 DP-2
set $mon2 HDMI-A-3
output $mon2 pos 0 0
output $mon1 pos 1080 0
# Xwayland related
xwayland force xwayland force
exec xrandr --output XWAYLAND0 --primary
include monitor
#output $mon1 adaptive_sync on #output $mon1 adaptive_sync on
### Output configuration ### Output configuration
@ -104,6 +99,10 @@ exec swayidle -w \
xkb_variant "colemak" xkb_variant "colemak"
xkb_options "caps:ctrl_modifier,altwin:swap_alt_win" xkb_options "caps:ctrl_modifier,altwin:swap_alt_win"
} }
input 2:10:TPPS/2_Elan_TrackPoint {
accel_profile "flat"
pointer_accel 1
}
# You can get the names of your inputs by running: swaymsg -t get_inputs # You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section. # Read `man 5 sway-input` for more information about this section.
@ -340,6 +339,7 @@ exec signal-desktop
# #
# Xwayland applications tend to use 'class=<class>', whereas wayland applications use 'appid=<appid>' # Xwayland applications tend to use 'class=<class>', whereas wayland applications use 'appid=<appid>'
assign [app_id="firefox"] workspace 2:r assign [app_id="firefox"] workspace 2:r
assign [class="firefox"] workspace 2:r
assign [app_id="Discord Firefox"] workspace 3:s assign [app_id="Discord Firefox"] workspace 3:s
for_window [title="^Discord — Mozilla Firefox$"] fullscreen disable for_window [title="^Discord — Mozilla Firefox$"] fullscreen disable
assign [class="WebCord"] workspace 3:s assign [class="WebCord"] workspace 3:s

View File

@ -1,4 +1,3 @@
gtk-icon-theme-name=kora gtk-theme-name="Materia-dark-compact"
gtk-theme-name=Materia-dark-compact gtk-icon-theme-name="kora"
gtk-cursor-theme-name=default gtk-cursor-theme-name=" default "