479 lines
20 KiB
Plaintext
479 lines
20 KiB
Plaintext
#####################################################################################################################
|
||
################# Define the $mod variable/key #################
|
||
#####################################################################################################################
|
||
|
||
# Key to rule them all : Super(Windows) or Alt key?
|
||
|
||
# Mod4 = Windows or Super key on keyboard
|
||
# Mod1 = Alt key on keyboard
|
||
|
||
#Set Alt key
|
||
#set $mod Mod1
|
||
|
||
#set Super key
|
||
set $mod Mod4
|
||
|
||
|
||
#####################################################################################################################
|
||
################# Define the movements keys - variables #################
|
||
#####################################################################################################################
|
||
|
||
|
||
#This is setup for qwerty
|
||
set $up l
|
||
set $down k
|
||
set $left j
|
||
set $right semicolon
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# Single and Dual screen #################
|
||
#####################################################################################################################
|
||
exec --no-startup-id xrandr --output eDP-1-1 --mode 1920x1080 --rate 60.00
|
||
exec xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||
exec xrandr --auto
|
||
exec --no-startup-id ~/.config/i3/scripts/conky_start.sh
|
||
exec --no-startup-id ~/.config/i3/scripts/conky_two.sh
|
||
#exec --no-startup-id ~/.config/i3/scripts/glavastart.sh
|
||
|
||
# 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
|
||
|
||
# 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
|
||
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# 3 menu's in arcolinux #################
|
||
#####################################################################################################################
|
||
|
||
# start dmenu
|
||
bindsym $mod+shift+d exec --no-startup-id dmenu_run -i -nb '#2E3440' -nf '#81a1c1' -sb '#81a1c1' -sf '#2E3440' -fn 'SourceCodePro:bold:pixelsize=16'
|
||
|
||
# start rofi full
|
||
bindsym $mod+d exec --no-startup-id rofi -show drun -font "Source Code Pro 14"
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# how to exit, logoff, suspend, ... #################
|
||
#####################################################################################################################
|
||
|
||
#Backup exit
|
||
#Press ctrl+alt+x - check toolbar for next choices
|
||
bindsym $mod+0 mode "$mode_system"
|
||
|
||
set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown
|
||
mode "$mode_system" {
|
||
|
||
bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
|
||
# bindsym k exec i3lock -i ~/Pictures/walls/waterfall2.jpg
|
||
bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
|
||
bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
|
||
bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
|
||
bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
|
||
bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
|
||
|
||
# back to normal: Enter or Escape
|
||
bindsym Return mode "default"
|
||
bindsym Escape mode "default"
|
||
}
|
||
|
||
|
||
# ArcoLinux Logout
|
||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||
|
||
|
||
#####################################################################################################################
|
||
################# reload changed configuration #################
|
||
#####################################################################################################################
|
||
|
||
|
||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||
bindsym $mod+Shift+r restart
|
||
|
||
# reload the configuration file
|
||
bindsym $mod+Shift+c reload
|
||
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# Stopping an application #################
|
||
#####################################################################################################################
|
||
|
||
# kill focused window
|
||
#bindsym $mod+Shift+q kill
|
||
bindsym $mod+q kill
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# Moving around in i3 #################
|
||
#####################################################################################################################
|
||
|
||
|
||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||
floating_modifier $mod
|
||
|
||
# toggle tiling / floating
|
||
bindsym $mod+Shift+space floating toggle
|
||
|
||
# change focus
|
||
bindsym $mod+$left focus left
|
||
bindsym $mod+$down focus down
|
||
bindsym $mod+$up focus up
|
||
bindsym $mod+$right focus right
|
||
|
||
# alternatively, you can use the cursor keys:
|
||
bindsym $mod+Left focus left
|
||
bindsym $mod+Down focus down
|
||
bindsym $mod+Up focus up
|
||
bindsym $mod+Right focus right
|
||
|
||
# move focused window
|
||
bindsym $mod+Shift+$left move left
|
||
bindsym $mod+Shift+$down move down
|
||
bindsym $mod+Shift+$up move up
|
||
bindsym $mod+Shift+$right move right
|
||
|
||
# alternatively, you can use the cursor keys:
|
||
bindsym $mod+Shift+Left move left
|
||
bindsym $mod+Shift+Down move down
|
||
bindsym $mod+Shift+Up move up
|
||
bindsym $mod+Shift+Right move right
|
||
|
||
#shortcuts
|
||
bindsym $mod+F1 exec --no-startup-id firefox
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# moving around workspaces #################
|
||
#####################################################################################################################
|
||
|
||
|
||
# next/previous workspace
|
||
|
||
bindsym Mod1+Tab workspace next
|
||
bindsym Mod1+Shift+Tab workspace prev
|
||
bindsym $mod+Tab workspace back_and_forth
|
||
|
||
#navigate workspaces next / previous
|
||
bindsym Mod1+Ctrl+Right workspace next
|
||
bindsym Mod1+Ctrl+Left workspace prev
|
||
|
||
|
||
#####################################################################################################################
|
||
################# Scratchpad #################
|
||
#####################################################################################################################
|
||
# Make the currently focused window a scratchpad
|
||
bindsym $mod+Shift+minus move scratchpad
|
||
|
||
# Show the first scratchpad window
|
||
bindsym $mod+minus scratchpad show
|
||
|
||
|
||
#####################################################################################################################
|
||
################# Tiling parameters #################
|
||
#####################################################################################################################
|
||
|
||
# orientation for new workspaces
|
||
default_orientation horizontal
|
||
|
||
# split in horizontal orientation
|
||
bindsym $mod+h split h
|
||
|
||
# split in vertical orientation
|
||
bindsym $mod+v split v
|
||
|
||
# enter fullscreen mode for the focused container
|
||
# Super + F in arcolinux is execute thunar
|
||
bindsym $mod+f fullscreen toggle
|
||
|
||
# change container layout (stacked, tabbed, toggle split)
|
||
# qwerty/azerty issue for letter z
|
||
bindsym $mod+s layout stacking
|
||
bindsym $mod+w layout tabbed
|
||
bindsym $mod+e layout toggle split
|
||
|
||
|
||
# change focus between tiling / floating windows
|
||
bindsym $mod+space focus mode_toggle
|
||
|
||
# focus the parent container
|
||
bindsym $mod+a focus parent
|
||
|
||
#autotiling
|
||
exec_always --no-startup-id autotiling
|
||
|
||
####################################################################################################################
|
||
# resize window (you can also use the mouse for that)
|
||
|
||
bindsym $mod+r mode "resize"
|
||
|
||
mode "resize" {
|
||
# These bindings trigger as soon as you enter the resize mode
|
||
|
||
# Pressing left will shrink the window’s width.
|
||
# Pressing right will grow the window’s width.
|
||
# Pressing up will shrink the window’s height.
|
||
# Pressing down will grow the window’s height.
|
||
bindsym $left resize shrink width 10 px or 10 ppt
|
||
bindsym $down resize grow height 10 px or 10 ppt
|
||
bindsym $up resize shrink height 10 px or 10 ppt
|
||
bindsym $right resize grow width 10 px or 10 ppt
|
||
|
||
# same bindings, but for the arrow keys
|
||
bindsym Left resize shrink width 10 px or 10 ppt
|
||
bindsym Down resize grow height 10 px or 10 ppt
|
||
bindsym Up resize shrink height 10 px or 10 ppt
|
||
bindsym Right resize grow width 10 px or 10 ppt
|
||
|
||
# back to normal: Enter or Escape
|
||
bindsym Return mode "default"
|
||
bindsym Escape mode "default"
|
||
}
|
||
|
||
|
||
#####################################################################################################################
|
||
################# choose the font #################
|
||
#####################################################################################################################
|
||
|
||
# Font for window titles. Will also be used by the bar unless a different font
|
||
# is used in the bar {} block below.
|
||
# choose your font
|
||
#font pango:Noto Mono Regular 13
|
||
font pango:Source Code Pro 13
|
||
|
||
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# autostart - execute applications at boot time #################
|
||
#####################################################################################################################
|
||
|
||
|
||
#Authentication dialog
|
||
# exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||
|
||
|
||
#####################################################################################################################
|
||
################# applications keyboard shortcuts #################
|
||
#####################################################################################################################
|
||
|
||
bindsym $mod+Return exec --no-startup-id xfce4-terminal;focus
|
||
|
||
bindsym control+mod1+u exec --no-startup-id pavucontrol
|
||
|
||
bindsym $mod+Shift+Return exec --no-startup-id thunar;focus
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# screenshots #################
|
||
#####################################################################################################################
|
||
|
||
bindsym Print exec gnome-screenshot
|
||
bindsym $mod+Print exec gnome-screenshot -i
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# audio settings #################
|
||
#####################################################################################################################
|
||
|
||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||
|
||
|
||
#####################################################################################################################
|
||
################# light #################
|
||
#####################################################################################################################
|
||
|
||
# Sreen brightness controls
|
||
bindsym XF86MonBrightnessUp exec light -A 1 # increase screen brightness
|
||
bindsym XF86MonBrightnessDown exec light -U 1 # decrease screen brightness
|
||
|
||
|
||
#####################################################################################################################
|
||
################# bar toggle #################
|
||
#####################################################################################################################
|
||
|
||
# bar toggle, hide or show
|
||
bindsym $mod+b bar mode toggle
|
||
|
||
bindsym $mod+i bar mode invisible
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# Popups control #################
|
||
#####################################################################################################################
|
||
|
||
#Popups during fullscreen mode
|
||
popup_during_fullscreen smart
|
||
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# i3 gaps next #################
|
||
#####################################################################################################################
|
||
|
||
for_window [class="^.*"] border pixel 2
|
||
gaps inner 24
|
||
gaps outer 10
|
||
#smart_gaps on
|
||
#smart_borders on
|
||
|
||
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# i3 gaps change #################
|
||
#####################################################################################################################
|
||
|
||
|
||
|
||
set $mode_gaps Gaps: (o) outer, (i) inner
|
||
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||
|
||
mode "$mode_gaps" {
|
||
bindsym o mode "$mode_gaps_outer"
|
||
bindsym i mode "$mode_gaps_inner"
|
||
bindsym Return mode "default"
|
||
bindsym Escape mode "default"
|
||
}
|
||
|
||
mode "$mode_gaps_inner" {
|
||
bindsym plus gaps inner current plus 5
|
||
bindsym minus gaps inner current minus 5
|
||
bindsym 0 gaps inner current set 0
|
||
|
||
bindsym Shift+plus gaps inner all plus 5
|
||
bindsym Shift+minus gaps inner all minus 5
|
||
bindsym Shift+0 gaps inner all set 0
|
||
|
||
bindsym Return mode "default"
|
||
bindsym Escape mode "default"
|
||
}
|
||
mode "$mode_gaps_outer" {
|
||
bindsym plus gaps outer current plus 5
|
||
bindsym minus gaps outer current minus 5
|
||
bindsym 0 gaps outer current set 0
|
||
|
||
bindsym Shift+plus gaps outer all plus 5
|
||
bindsym Shift+minus gaps outer all minus 5
|
||
bindsym Shift+0 gaps outer all set 0
|
||
|
||
bindsym Return mode "default"
|
||
bindsym Escape mode "default"
|
||
}
|
||
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
################# picom of i3wm #################
|
||
#####################################################################################################################
|
||
|
||
#if you want transparency on non-focused windows, ...
|
||
exec_always --no-startup-id picom --config ~/.config/picom/picom.sample.conf
|
||
exec_always --no-startup-id ~/.config/i3/scripts/mouse.sh
|
||
exec_always feh --bg-fill /home/quinta/Downloads/735.png
|
||
exec_always --no-startup-id i3-auto-layout
|
||
exec_always --no-startup-id $HOME/.config/polybar/launch.sh dark
|
||
exec_always --no-startup-id i3-auto-layout
|
||
exec_always --no-startup-id dunst -config $HOME/.config/dunst/base16-nord.dunstrc
|
||
#note: my custom dunst configuration can be found here https://pastebin.com/P4i1N8ub curl it to $HOME/.config/dunst/base16-nord.dunstrc
|
||
exec_always --no-startup-id /usr/lib/kdeconnectd
|
||
|
||
bindsym Mod4+Mod1+Shift+minus exec \
|
||
i3-msg "gaps outer current minus 5" && \
|
||
i3-msg "gaps inner current minus 5"
|
||
|
||
bindsym Mod4+Mod1+Shift+plus exec \
|
||
i3-msg "gaps outer current plus 5" && \
|
||
i3-msg "gaps inner current plus 5"
|
||
|
||
|
||
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
################# bar appearance #################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
set $base00 #101218
|
||
set $base01 #1f222d
|
||
set $base02 #252936
|
||
set $base03 #5e81ac
|
||
set $base04 #C0C5CE
|
||
set $base05 #d1d4e0
|
||
set $base06 #C9CCDB
|
||
set $base07 #ffffff
|
||
set $base08 #ee829f
|
||
set $base09 #f99170
|
||
set $base0A #ffefcc
|
||
set $base0B #a5ffe1
|
||
set $base0C #97e0ff
|
||
set $base0D #97bbf7
|
||
set $base0E #c0b7f9
|
||
set $base0F #fcc09e
|
||
#its neon blue #4666FF
|
||
|
||
|
||
|
||
##START THEMING WM
|
||
|
||
# Window color settings
|
||
# class border backgr. text indicator
|
||
client.focused #fbf1c7 #fbf1c7 #ffffff #fbf1c7
|
||
client.unfocused #32302f #282828 #888888 #32302f
|
||
client.focused_inactive #282828 #282828 #888888 #282828
|
||
client.placeholder #282828 # #888888 #82828
|
||
client.urgent #900000 #900000 #ffffff #900000
|
||
|
||
client.background #242424
|
||
|
||
##STOP THEMING WM
|
||
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
######################################## THE END ###########################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|
||
#####################################################################################################################
|