Merge branch 'master' of ssh://dundun.ddns.net:222/sheldonmlee/dotfiles
This commit is contained in:
commit
8f2a52fb08
1
.config/scripts/bin/discord-ff
Symbolic link
1
.config/scripts/bin/discord-ff
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../firefox/discord-ff
|
1
.config/scripts/bin/toggle-mic-notify
Symbolic link
1
.config/scripts/bin/toggle-mic-notify
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../wm/toggle-mic-notify
|
2
.config/scripts/firefox/discord-ff
Executable file
2
.config/scripts/firefox/discord-ff
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
firefox --name="Discord Firefox" -P Discord
|
6
.config/scripts/wm/toggle-mic-notify
Executable file
6
.config/scripts/wm/toggle-mic-notify
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
amixer set Capture toggle @> /dev/null
|
||||||
|
|
||||||
|
str=$(grep '\[on\]\|\[off\]' <<< $(amixer get Capture) | awk '{print $5}')
|
||||||
|
echo $str
|
||||||
|
notify-send "Microphone: $str"
|
@ -236,6 +236,10 @@ exec swayidle -w \
|
|||||||
# If there are multiple scratchpad windows, this command cycles through them.
|
# If there are multiple scratchpad windows, this command cycles through them.
|
||||||
bindsym $mod+minus scratchpad show
|
bindsym $mod+minus scratchpad show
|
||||||
#
|
#
|
||||||
|
# Microphone:
|
||||||
|
#
|
||||||
|
bindsym $mod+Tab exec toggle-mic-notify
|
||||||
|
#
|
||||||
# Resizing containers:
|
# Resizing containers:
|
||||||
#
|
#
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
@ -320,25 +324,29 @@ exec dunst
|
|||||||
|
|
||||||
exec alacritty
|
exec alacritty
|
||||||
exec firefox
|
exec firefox
|
||||||
exec flatpak run com.discordapp.Discord
|
exec discord-ff
|
||||||
|
exec signal-desktop
|
||||||
|
|
||||||
#
|
#
|
||||||
# Application rules:
|
# Application rules:
|
||||||
#
|
#
|
||||||
# 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
|
||||||
#for_window [title="^Discord — Mozilla Firefox"] move container to workspace 3:s
|
assign [app_id="Discord Firefox"] workspace 3:s
|
||||||
for_window [class="discord"] move container to workspace 3:s
|
for_window [title="^Discord — Mozilla Firefox$"] fullscreen disable
|
||||||
|
assign [class="Signal"] workspace 3:s
|
||||||
assign [class="Steam"] workspace 4:t
|
assign [class="Steam"] workspace 4:t
|
||||||
# Inhibit swayidle when discord is focused. Usefull when watching stream.
|
|
||||||
for_window [class="discord"] inhibit_idle focus
|
|
||||||
# Space Games, as joystick usage without mouse and keyboard count as idle.
|
# Space Games, as joystick usage without mouse and keyboard count as idle.
|
||||||
for_window [class="steam_app_359320"] inhibit_idle focus
|
for_window [class="steam_app_359320"] inhibit_idle focus
|
||||||
for_window [class="starcitizen.exe"] inhibit_idle focus
|
for_window [class="starcitizen.exe"] inhibit_idle focus
|
||||||
# Floating windows
|
# Floating windows
|
||||||
for_window [title="Firefox — Sharing Indicator"] floating enable, move position 50ppt 0px;
|
for_window [title="^Firefox — Sharing Indicator$"] floating enable, move position 50ppt 0px;
|
||||||
for_window [class="genshinimact.exe"] floating enable;
|
for_window [class="^Steam$"] floating enable
|
||||||
for_window [class=".*.exe"] floating enable;
|
for_window [class="^Steam$" title="^Steam$"] floating disable
|
||||||
|
for_window [class="genshinimact.exe"] floating enable
|
||||||
|
for_window [class=".*.exe$"] floating enable
|
||||||
# Move windows to trash workspace
|
# Move windows to trash workspace
|
||||||
for_window [title="Origin"] floating enable, move container to workspace trash;
|
for_window [title="^Origin$"] floating enable, move container to workspace trash;
|
||||||
|
for_window [title="^Wine System Tray$"] move container to workspace trash;
|
||||||
|
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
Loading…
Reference in New Issue
Block a user