i3, fix audio not working and fix Firefox + Transmission variables not working.
This commit is contained in:
+23
-12
@@ -9,6 +9,9 @@
|
||||
#
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $FIREFOX "sh -c '(which firefox && firefox) || (which firefox-esr && firefox-esr) || (which firefox-flatpak && firefox-flatpak)'"
|
||||
set $TRANSMISSION "sh -c '(which transmission && transmission) || (which transmission-gtk && transmission-gtk) || (which transmission-flatpak && transmission-flatpak)'"
|
||||
|
||||
# Use the `xev` command to see the name and code of a keyboard key.
|
||||
|
||||
set $mod Mod4
|
||||
@@ -131,7 +134,7 @@ bindsym $mod+t exec lxappearance
|
||||
bindsym $mod+m exec thunar
|
||||
|
||||
# Internet.
|
||||
bindsym $mod+i exec "firefox || firefox-esr || firefox-flatpak"
|
||||
bindsym $mod+i exec $FIREFOX
|
||||
|
||||
# Code.
|
||||
bindsym $mod+c exec codium-flatpak
|
||||
@@ -252,12 +255,12 @@ assign [class="(?i).*Mullvad.*"] $ws10
|
||||
|
||||
|
||||
## Workspace Specific Workflows ##
|
||||
bindsym $ctrl+$shift+1 workspace $ws1; exec i3-sensible-terminal;
|
||||
bindsym $ctrl+$shift+2 workspace $ws2; exec "firefox || firefox-esr || firefox-flatpak";
|
||||
bindsym $ctrl+$shift+3 workspace $ws3; exec codium-flatpak;
|
||||
bindsym $ctrl+$shift+4 workspace $ws4; exec code-flatpak;
|
||||
bindsym $ctrl+$shift+1 workspace $ws1; exec i3-sensible-terminal
|
||||
bindsym $ctrl+$shift+2 workspace $ws2; exec $FIREFOX
|
||||
bindsym $ctrl+$shift+3 workspace $ws3; exec codium-flatpak
|
||||
bindsym $ctrl+$shift+4 workspace $ws4; exec code-flatpak
|
||||
bindsym $ctrl+$shift+5 workspace $ws5; exec "session; dino"
|
||||
bindsym $ctrl+$shift+7 workspace $ws7; exec "transmission || transmission-gtk || transmission-flatpak"
|
||||
bindsym $ctrl+$shift+7 workspace $ws7; exec $TRANSMISSION
|
||||
|
||||
|
||||
## Reloads, Restarts, Exit ##
|
||||
@@ -324,14 +327,22 @@ bar {
|
||||
|
||||
## Startup Applications ##
|
||||
|
||||
exec mullvad-vpn
|
||||
exec i3-sensible-terminal
|
||||
exec "transmission || transmission-gtk || transmission-flatpak"
|
||||
exec --no-startup-id mullvad-vpn
|
||||
exec --no-startup-id i3-sensible-terminal
|
||||
exec --no-startup-id $TRANSMISSION
|
||||
|
||||
exec light -O
|
||||
exec light -N 0
|
||||
# Set defaults for laptop backlights.
|
||||
exec --no-startup-id light -O
|
||||
exec --no-startup-id light -N 0
|
||||
|
||||
exec setxkbmap -layout us -variant altgr-intl
|
||||
# Set the correct keymap.
|
||||
exec --no-startup-id setxkbmap -layout us -variant altgr-intl
|
||||
|
||||
# Notifications (allows fyi and notify-send to work)
|
||||
exec --no-startup-id dunst
|
||||
|
||||
# Audio
|
||||
exec --no-startup-id dbus-launch --exit-with-session i3
|
||||
exec --no-startup-id pipewire &
|
||||
exec --no-startup-id sleep 1 && pipewire-pulse &
|
||||
exec --no-startup-id sleep 2 && wireplumber &
|
||||
|
||||
Reference in New Issue
Block a user