From de922767bee1ee2f8a4d19ac9d58194585c090d8 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Mon, 19 Sep 2022 17:39:21 +0800 Subject: [PATCH 1/5] Add trackpoint config. --- .config/sway/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 5b60720..a23c88b 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -96,6 +96,10 @@ exec swayidle -w \ xkb_variant "colemak" 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 # Read `man 5 sway-input` for more information about this section. @@ -310,7 +314,6 @@ bindsym $mod+Control+h gaps horizontal current plus 200 bindsym $mod+Control+l gaps horizontal current minus 200 bindsym $mod+shift+f gaps horizontal current toggle 400 -gaps inner 5 smart_gaps inverse_outer default_border pixel 3 From ec587d869b44e720296c10edad735e34ad4642c3 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Mon, 19 Sep 2022 18:55:03 +0800 Subject: [PATCH 2/5] lxappearance generated formatting. This is so it works on my arch laptop for some reason. --- .gtkrc-2.0 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gtkrc-2.0 b/.gtkrc-2.0 index a35b812..e9f849e 100644 --- a/.gtkrc-2.0 +++ b/.gtkrc-2.0 @@ -1,4 +1,3 @@ -gtk-icon-theme-name=kora -gtk-theme-name=Materia-dark-compact -gtk-cursor-theme-name=default - +gtk-theme-name="Materia-dark-compact" +gtk-icon-theme-name="kora" +gtk-cursor-theme-name=" default " From 1ff55c976f7ac04cb009a631e295c8b49e1e9126 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Mon, 19 Sep 2022 19:18:27 +0800 Subject: [PATCH 3/5] Updated config. --- .config/sway/config | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index c469355..79d136b 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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. # @@ -41,15 +41,10 @@ set $screenshot "~/.config/scripts/wm/screenshot.sh" ### Monitor config # # 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 -exec xrandr --output XWAYLAND0 --primary + +include monitor + #output $mon1 adaptive_sync on ### Output configuration @@ -344,6 +339,7 @@ exec signal-desktop # # Xwayland applications tend to use 'class=', whereas wayland applications use 'appid=' assign [app_id="firefox"] workspace 2:r +assign [class="firefox"] workspace 2:r assign [app_id="Discord Firefox"] workspace 3:s for_window [title="^Discord — Mozilla Firefox$"] fullscreen disable assign [class="WebCord"] workspace 3:s From 3ed6dd158be6a97e9866ff0c00e38d92c9d1d96f Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Wed, 21 Sep 2022 00:14:41 +0800 Subject: [PATCH 4/5] Use pactl to control muting/unmuting for compatibility. --- .config/scripts/wm/toggle-mic-notify | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/scripts/wm/toggle-mic-notify b/.config/scripts/wm/toggle-mic-notify index 7e996e7..b73201c 100755 --- a/.config/scripts/wm/toggle-mic-notify +++ b/.config/scripts/wm/toggle-mic-notify @@ -1,6 +1,7 @@ #!/bin/sh -amixer set Capture toggle @> /dev/null -str=$(grep '\[on\]\|\[off\]' <<< $(amixer get Capture) | awk '{print $5}') -echo $str -notify-send "Microphone: $str" +pactl set-source-mute @DEFAULT_SOURCE@ toggle +str=$(pactl get-source-mute @DEFAULT_SOURCE@| awk '{print $2}') + +[[ "$str" == "yes" ]] && notify-send "Microphone: off" +[[ "$str" == "no" ]] && notify-send "Microphone: on" From 0da6feaf0aebdcfeebebf3413a937f4f07f1270b Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sat, 24 Sep 2022 21:30:30 +0100 Subject: [PATCH 5/5] Change path for brightness command alias. --- .bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index 64b16de..eb82832 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -16,7 +16,7 @@ alias screenoff="sleep 2; xset dpms force off" # sleep alias suspend="slock & sleep 5 ; systemctl suspend" # screen brightness script -alias brightness="$HOME/.config/wm_scripts/brightness.sh" +alias brightness="$HOME/.config/scripts/wm/brightness.sh" # # TUI