Initial Commit

This commit is contained in:
Salim Zaidi 2023-06-20 17:45:22 +01:00
parent f18da1cc25
commit a5bc6b13c5
96 changed files with 6936 additions and 0 deletions

24
config/i3/autostart.sh Executable file
View file

@ -0,0 +1,24 @@
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
picom -b &
dunst &
killall nm-applet
nm-applet &
#killall blueman-applet
#blueman-applet &
killall volumeicon
volumeicon &
numlockx on &
killall xfce4-power-manager
xfce4-power-manager &
killall sxhkd
sxhkd -c ~/.config/sxhkd/sxhkdrc &
ibus-daemon -drx &

10
config/i3/colors.conf Executable file
View file

@ -0,0 +1,10 @@
######################################
# Colors
# class border bground text indicator child_border
client.focused #d6acff #d6acff #F8F8F2 #d6acff #d6acff
client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A
client.unfocused #282A36 #282A36 #BFBFBF #282A36 #282A36
client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555
client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
client.background #F8F8F2

59
config/i3/config Executable file
View file

@ -0,0 +1,59 @@
######################################
# External
include $HOME/.config/i3/workspaces.conf
include $HOME/.config/i3/colors.conf
exec --no-startup-id ibus-daemon -drx
exec_always feh --bg-fill ~/.config/wallpapers/wall.png
#exec_always --no-startup-id ~/.fehbg
exec_always --no-startup-id ~/.config/i3/autostart.sh
exec --no-startup-id ~/.config/scripts/help_notification.sh
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
#exec --no-startup-id ~/.config/scripts/resolution.sh
#exec --no-startup-id ~/.config/scripts/resolution-double.sh
######################################
# Vars
set $mod Mod4
set $g_inner 9
set $g_outer 6
######################################
# Theme
font pango:monospace 8
new_window 1pixel
gaps inner $g_inner
gaps outer $g_outer
default_border pixel 2
default_floating_border pixel 2
floating_modifier $mod
bindsym $mod+q kill
######################################
# Gaps
bindsym $mod+Shift+n gaps inner current set $g_inner; gaps outer current set $g_outer
bindsym $mod+x gaps outer current plus 5
bindsym $mod+Shift+x gaps outer current minus 5
bindsym $mod+z gaps inner current plus 5
bindsym $mod+Shift+z gaps inner current minus 5
######################################
# System keybindings
# Reboot
bindsym $mod+Shift+b exec "sudo reboot"
# Power off
bindsym $mod+Shift+s exec "sudo shutdown now"
# Browser
bindsym $mod+w exec brave-browser
# Open Alacritty in floating mode
bindsym $mod+Shift+Return exec alacritty --class AlacrittyFloating
# Set AlacrittyFloating window to floating mode
for_window [class="AlacrittyFloating"] floating enable, move position center
# Open sxiv in fullscreen mode
for_window [class="Sxiv"] fullscreen

83
config/i3/workspaces.conf Executable file
View file

@ -0,0 +1,83 @@
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
set $ws11 "11"
######################################
# Mouvements
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+F12 workspace 11
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+Shift+F12 move container to workspace 11
# switch to workspace with numlock keys
bindcode $mod+Mod2+87 workspace 1
bindcode $mod+Mod2+88 workspace 2
bindcode $mod+Mod2+89 workspace 3
bindcode $mod+Mod2+83 workspace 4
bindcode $mod+Mod2+84 workspace 5
bindcode $mod+Mod2+85 workspace 6
bindcode $mod+Mod2+79 workspace 7
bindcode $mod+Mod2+80 workspace 8
bindcode $mod+Mod2+81 workspace 9
bindcode $mod+Mod2+90 workspace 10
# move focused container to workspace with numlock keys
bindcode $mod+Shift+Mod2+87 move container to workspace 1
bindcode $mod+Shift+Mod2+88 move container to workspace 2
bindcode $mod+Shift+Mod2+89 move container to workspace 3
bindcode $mod+Shift+Mod2+83 move container to workspace 4
bindcode $mod+Shift+Mod2+84 move container to workspace 5
bindcode $mod+Shift+Mod2+85 move container to workspace 6
bindcode $mod+Shift+Mod2+79 move container to workspace 7
bindcode $mod+Shift+Mod2+80 move container to workspace 8
bindcode $mod+Shift+Mod2+81 move container to workspace 9
bindcode $mod+Shift+Mod2+90 move container to workspace 10
######################################
# Assignments
# bind program to workspace and focus to them on startup:
assign [class="Brave-browser"] 1
assign [class="Thunar"] 2
assign [class="Codium"] 3
assign [class="TelegramDesktop"] 4
assign [class="discord"] 5
assign [class="GitHub Desktop"] 10
# automatic set focus new window if it opens on another workspace then the current:
for_window [class=Brave-browser] focus
for_window [class=Thunar] focus
for_window [class=Codium] focus
for_window [class=TelegramDesktop] focus
for_window [class=discord] focus
for_window [class="GitHub Desktop" ] focus
workspace 11 output HDMI-0