User Tools

Site Tools


wm:i3:config:per-johan_halsli
#://github.com/Airblader/i3i i3-config
 
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango: System San Francisco Display 10
 
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
font pango:FontAwesome 7
 
set $mod Mod4
 
 
# use Mouse+Mod1 to drag floating windows to their wanted position
floating_modifier Mod4
 
# start a terminal
bindsym Mod4+Return exec urxvt
#bindsym Mod4+Return exec gnome-terminal 
 
 
# start andre progs
bindsym Mod1+f exec thunar
bindsym Mod1+b exec google-chrome-unstable
 
# kill focused window
bindsym Mod4+Shift+q kill
 
# gaps
for_window [class="^.*"] border pixel 2 
smart_gaps on 
gaps inner 4 
gaps outer 2
smart_borders on 
 
# start dmenu 
bindsym Mod4+d exec dmenu_run -l 15 -sb cyan -sf black -fn hermit 
#bindsym Mod4+d exec --no-startup-id i3-dmenu-desktop
#bindsym $Mod4+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "System San Francisco Display 18"
 
# autostart
exec nitrogen --restore
exec --no-startup-id compton -f
exec --no-startup-id firefox
# exec --no-startup-id urxvt
#exec --no-startup-id rofi -show run
exec xrdb -merge ~/.Xresources
 
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l 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
 
# split in horizontal orientation
bindsym Mod1+h split v
#bindsym Mod1+v split h
 
# split in vertical orientation
bindsym Mod1+v split h
#bindsym Mod1+h split v
 
# enter fullscreen mode for the focused container
bindsym Mod4+f fullscreen toggle
 
# change container layout (stacked, tabbed, toggle split)
bindsym Mod4+s layout stacking
bindsym Mod4+w layout tabbed
bindsym Mod4+e layout toggle split
 
# toggle tiling / floating
bindsym Mod4+Shift+space floating toggle
 
# change focus between tiling / floating windows
bindsym Mod4+space focus mode_toggle
 
# focus the parent container
bindsym Mod4+a focus parent
 
 
# move the currently focused window to the scratchpad
bindsym Mod4+Shift+minus move scratchpad
 
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym Mod4+minus scratchpad show
 
# customize workspace names
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 $WS0 10:
 
## xtra icns
#                                                                           
#                          
 
# switch to workspace
bindsym Mod4+1 workspace $WS1
bindsym Mod4+2 workspace $WS2
bindsym Mod4+3 workspace $WS3
bindsym Mod4+4 workspace $WS4
bindsym Mod4+5 workspace $WS5
bindsym Mod4+6 workspace $WS6
bindsym Mod4+7 workspace $WS7
bindsym Mod4+8 workspace $WS8
bindsym Mod4+9 workspace $WS9
bindsym Mod4+0 workspace $WS0
 
# move focused container to workspace
bindsym Mod4+Shift+1 move container to workspace $WS1
bindsym Mod4+Shift+2 move container to workspace $WS2
bindsym Mod4+Shift+3 move container to workspace $WS3
bindsym Mod4+Shift+4 move container to workspace $WS4
bindsym Mod4+Shift+5 move container to workspace $WS5
bindsym Mod4+Shift+6 move container to workspace $WS6
bindsym Mod4+Shift+7 move container to workspace $WS7
bindsym Mod4+Shift+8 move container to workspace $WS8
bindsym Mod4+Shift+9 move container to workspace $WS9
bindsym Mod4+Shift+0 move container to workspace 10
 
assign [class="gnome-terminal"] $WS1
assign [class="spacefm"] $WS3
assign [class="firefox"] $workspace2
assign [class="vlc"] $WS4
assign [class="atom"] $WS5
assign [class="nitrogen"] $WS6
 
# reload the configuration file
bindsym Mod4+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym Mod4+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym Mod4+Shift+e exec "i3-nagbar -t warning -m 'I do not want to quit. Are you sure? This will really piss me off. I might explode next time' -b 'Yes, Fuck Off' 'i3-msg exit'"
 
# resize window (you can also use the mouse for that)
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"
}
 
bindsym Mod4+r mode "resize"
 
 
# Tema
set bg-color             #C80000
set $bg-color1 	         #2f343f
set $inactive-bg-color   #2f343f
set $text-color          #f3f4f5
set $text-color1         #C80000
set $inactive-text-color #676E7D
set $urgent-bg-color     #E53935
 
# window colors
#                       background          border              text                 indicator
#client.focused          $bg-color          $1E90FF            $bg-color1             $1E90FF 
#client.unfocused        $inactive-bg-color $inactive-bg-color $inactive-text-color   $bg-color
#client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color   $bg-color
#client.urgent           $urgent-bg-color   $urgent-bg-color   $text-color            $bg-color
 
#colors 2
client.focused #586e75 #6C6C6C #f9f9f9 #268bd2
client.focused_inactive #455057 #455057 #c7c7c7 #002b36
client.unfocused #2d2d2d #2d2d2d #c7c7c7 #002b36
client.urgent #dc322f #dc322f #f9f9f9 #dc322f
 
# colors 3
#client.focused #D4D5D6 #D4D5D6 #6F7782
#client.unfocused #bac4cc #F0F1F2 #AAB6C7
#client.focused_inactive #51c4d4 #ecedee #818996
#client.urgent #51c4d4 #ecedee #818996
 
 
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
        status_command i3blocks  -c /home/prince/.i3/i3blocks.conf
        #font xft: Cousine, FontAwesome 9
         font xft: pango:open sans, Hack 7 
        #font xft: Material-Design-Iconic-Font,pango:open sans 9
        position top
        workspace_buttons yes
 
       strip_workspace_numbers yes
 
		 colors {
                separator #586e75 
     background #2d2d2d
     statusline #6C6C6C
     focused_workspace        #FFFFFF #6C6C6C
     active_workspace #4DFEFD #586e75 #4DFEFD
     inactive_workspace #455057 #455057 #c7c7c7
     urgent_workspace #ae4544 #ae4544 #ffffff
 
 
     #background #2d2d2d
     #statusline #c7c7c7
     #focused_workspace  #4DFEFD #586e75 #ffffff
     #active_workspace #2d2d2d #2d2d2d #ffffff
     #inactive_workspace #455057 #455057 #c7c7c7
     #urgent_workspace #ae4544 #ae4544 #ffffff            
 
                #background $bg-color1
                #separator #757575
 
                #                  border                text               bg
                #focused_workspace  #1E90FF            $bg-color1         #1E90FF
                #inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
                #urgent_workspace   $urgent-bg-color   $urgent-bg-color   $text-color
 
        #background #0e1115
        #statusline #1E90FF
        #separator #51c4d4
 
        #focused_workspace  #EE7202 #0e1115 #EE7202
        #active_workspace   #0e1115 #0e1115 #4FC0E8
        #inactive_workspace #0e1115 #0e1115 #222C36
        #urgent_workspace   #FF0000 #FF0000 #222C36
    }
}
 
#######################################################################
# automatically start i3-config-wizard to offer the user to create a
# keysym-based config which used their favorite modifier (alt or windows)
#
# i3-config-wizard will not launch if there already is a config file
# in ~/.i3/config.
#
# Please remove the following exec line:
#######################################################################
exec i3-config-wizard
wm/i3/config/per-johan_halsli.txt · Last modified: 2021/12/29 21:09 by warnaud