|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
# KeY's I3 COnfig file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
# VARIABLES #
|
|
|
|
|
#########################################################################
|
|
|
|
@ -31,17 +30,22 @@ set $usrBorderGaps 5
|
|
|
|
|
|
|
|
|
|
# Default treminal to use
|
|
|
|
|
set $defTerm "alacritty -e fish"
|
|
|
|
|
set $defTermClass "Alacritty"
|
|
|
|
|
# Default web browser
|
|
|
|
|
set $defWebBrowser "firefox & wait $!"
|
|
|
|
|
set $defWebBrowser "firefox"
|
|
|
|
|
set $defWebBrowserClass "Firefox-esr"
|
|
|
|
|
# Default Music player
|
|
|
|
|
set $defMusicPlayer "/snap/bin/spotify & wait $!"
|
|
|
|
|
set $defMusicPlayer "spotify"
|
|
|
|
|
set $defMusicPlayerClass "Spotify"
|
|
|
|
|
#default Notes program.
|
|
|
|
|
set $defNotes "/home/$USER/obsidian/obsidian.AppImage"
|
|
|
|
|
set $defNotes "QOwnNotes"
|
|
|
|
|
set $defNotesClass "QOwnNotes"
|
|
|
|
|
# Default mail program
|
|
|
|
|
set $defMail "evolution & wait $!"
|
|
|
|
|
set $defMail "evolution"
|
|
|
|
|
set $defMailClass "Evolution"
|
|
|
|
|
# Default Menu Launcher
|
|
|
|
|
set $defMenuLauncher "dmenu_run"
|
|
|
|
|
# Default Wallpaper Mananer : it will be automatically Launched At start
|
|
|
|
|
# Default Wallpaper MananSr : it will be automatically Launched At start
|
|
|
|
|
set $defWallpaperManager "feh --bg-fill --randomize $HOME/wallpaper/*"
|
|
|
|
|
# Default Window compositor (fomr, rounded corners, tasparency and so on) :it will be automatically Launched At start
|
|
|
|
|
set $defWindowCompositor "picom --experimental-backends --config ~/.config/picom/picom.conf"
|
|
|
|
@ -61,14 +65,12 @@ set $ws8 "8"
|
|
|
|
|
set $ws9 "9"
|
|
|
|
|
set $ws10 "10"
|
|
|
|
|
|
|
|
|
|
#assign [class="Navigator"] $ws3
|
|
|
|
|
for_window [class="Navigator"] move to workspace $ws3
|
|
|
|
|
############
|
|
|
|
|
# COMMANDS #
|
|
|
|
|
############
|
|
|
|
|
#https://community.spotify.com/t5/Desktop-Linux/Basic-controls-via-command-line/td-p/4295625
|
|
|
|
|
#Sets media key for music player
|
|
|
|
|
set $playerPause "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause"
|
|
|
|
|
set $playerPause "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
|
|
|
|
|
set $playerPlayPause "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
|
|
|
|
|
set $playerPrevious "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
|
|
|
|
|
set $playerNext "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
|
|
|
|
@ -95,13 +97,13 @@ bindsym $mod+c kill
|
|
|
|
|
# Launch Menu Launcher
|
|
|
|
|
bindsym $mod+p exec --no-startup-id $defMenuLauncher
|
|
|
|
|
# Launch Note app
|
|
|
|
|
bindsym $mod+o exec $defNotes
|
|
|
|
|
bindsym $mod+n exec $defNotes
|
|
|
|
|
# Launch web Browser
|
|
|
|
|
bindsym $mod+i exec $defWebBrowser
|
|
|
|
|
# Launch Music Player
|
|
|
|
|
bindsym $mod+u exec $defMusicPLayer
|
|
|
|
|
# Launch web Browser
|
|
|
|
|
bindsym $mod+z exec $defMail
|
|
|
|
|
bindsym $mod+m exec $defMail
|
|
|
|
|
|
|
|
|
|
# IMplment music player media butttons
|
|
|
|
|
bindsym XF86AudioPause exec $playerPause
|
|
|
|
@ -171,27 +173,34 @@ exec xrandr --output HDMI-0 --rotate right
|
|
|
|
|
########
|
|
|
|
|
# USER #
|
|
|
|
|
########
|
|
|
|
|
|
|
|
|
|
# Asing certain programms to certain workspaces.
|
|
|
|
|
assign [class=$defTermClass] $ws2
|
|
|
|
|
assign [class=$defWebBrowserClass] $ws3
|
|
|
|
|
assign [class=$defNotesClass] $ws4
|
|
|
|
|
assign [class=$defMailClass] $ws5
|
|
|
|
|
# This is special for spotify who has issue to to comply with the assign command
|
|
|
|
|
for_window [class=$defMusicPlayerClass] move to workspace $ws6
|
|
|
|
|
|
|
|
|
|
# Open web terminal
|
|
|
|
|
exec --no-startup-id i3-msg exec $defTerm
|
|
|
|
|
# Open web browser
|
|
|
|
|
exec --no-startup-id i3-msg exec $defWebBrowser
|
|
|
|
|
# Open note Taking app
|
|
|
|
|
exec --no-startup-id i3-msg exec $defNotes
|
|
|
|
|
# Open Mail Client
|
|
|
|
|
exec --no-startup-id i3-msg exec $defMail
|
|
|
|
|
# Open Music player
|
|
|
|
|
exec --no-startup-id i3-msg exec $defMusicPlayer
|
|
|
|
|
|
|
|
|
|
#Switch to workspace 1 and ready for workflow
|
|
|
|
|
exec --no-startup-id i3-msg workspace $ws1
|
|
|
|
|
|
|
|
|
|
# Lauches Wallpaper engine
|
|
|
|
|
exec --no-startup-id $defWallpaperManager
|
|
|
|
|
# Lauches Window Compositor (transparency and so on ...)
|
|
|
|
|
exec --no-startup-id $defWindowCompositor
|
|
|
|
|
|
|
|
|
|
# Go to worksapce 5 and open mails
|
|
|
|
|
exec --no-startup-id i3-msg workspace $ws5
|
|
|
|
|
exec --no-startup-id i3-msg exec $defMail
|
|
|
|
|
|
|
|
|
|
# Go to Worksapce 4 and open Notes
|
|
|
|
|
exec --no-startup-id i3-msg exec $defNotes
|
|
|
|
|
|
|
|
|
|
# Go to Worksapce 3 and open web browser
|
|
|
|
|
exec --no-startup-id i3-msg workspace $ws3
|
|
|
|
|
exec --no-startup-id i3-msg exec $defWebBrowser
|
|
|
|
|
|
|
|
|
|
# Go to workspace 2 and lunch terminal emulator
|
|
|
|
|
exec --no-startup-id i3-msg workspace $ws2
|
|
|
|
|
exec --no-startup-id i3-msg exec $defTerm
|
|
|
|
|
|
|
|
|
|
#exec --no-startup-id i3-msg workspace $ws1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
# WINDOW ACTION #
|
|
|
|
|
#########################################################################
|
|
|
|
|