dotfiles

My dotfiles
git clone git://mcdim.xyz/dotfiles.git
Log | Files | Refs

config (7401B)


      1 # It will not be overwritten, so edit it as you like.  #
      2 # Should you change your keyboard layout some time, delete
      3 # this file and re-run i3-config-wizard(1).
      4 #
      5 
      6 # i3 config file (v4)
      7 #
      8 # Please see https://i3wm.org/docs/userguide.html for a complete reference!
      9 
     10 set $mod Mod1
     11 
     12 # Font for window titles. Will also be used by the bar unless a different font
     13 # is used in the bar {} block below.
     14 font pango:monospace 13
     15 
     16 # This font is widely installed, provides lots of unicode glyphs, right-to-left
     17 # text rendering and scalability on retina/hidpi displays (thanks to pango).
     18 #font pango:DejaVu Sans Mono 8
     19 
     20 # The combination of xss-lock, nm-applet and pactl is a popular choice, so
     21 # they are included here as an example. Modify as you see fit.
     22 
     23 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
     24 # screen before suspend. Use loginctl lock-session to lock your screen.
     25 exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
     26 
     27 # NetworkManager is the most popular way to manage wireless networks on Linux,
     28 # and nm-applet is a desktop environment-independent system tray GUI for it.
     29 exec --no-startup-id nm-applet
     30 
     31 # Use pactl to adjust volume in PulseAudio.
     32 set $refresh_i3status killall -SIGUSR1 i3status
     33 set $refresh_i3blocks_audio pkill -SIGRTMIN+5 i3blocks
     34 
     35 # Use Mouse+$mod to drag floating windows to their wanted position
     36 floating_modifier $mod
     37 
     38 # kill focused window
     39 bindsym $mod+Shift+q kill
     40 bindsym $mod+q kill
     41 
     42 bindsym Ctrl+$mod+Left exec ~/.i3MoveNext.sh -1
     43 bindsym Ctrl+$mod+Right exec ~/.i3MoveNext.sh 1
     44 
     45 ####
     46 ###
     47 #
     48 #bindsym $mod+g exec /home/michael/.scripts/googleclip.sh
     49 
     50 # There also is the (new) i3-dmenu-desktop which only displays applications
     51 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
     52 # installed.
     53 
     54 # change focus
     55 bindsym $mod+j focus down
     56 bindsym $mod+k focus up
     57 bindsym $mod+l focus right
     58 bindsym $mod+semicolon focus left
     59 
     60 # alternatively, you can use the cursor keys:
     61 bindsym $mod+Left focus left
     62 bindsym $mod+Down focus down
     63 bindsym $mod+Up focus up
     64 bindsym $mod+Right focus right
     65 
     66 # move focused window
     67 bindsym $mod+Ctrl+j move down
     68 bindsym $mod+Ctrl+k move up
     69 bindsym $mod+Ctrl+l move right 
     70 bindsym $mod+h move left
     71 
     72 # alternatively, you can use the cursor keys:
     73 bindsym $mod+Shift+Left move left
     74 bindsym $mod+Shift+Down move down
     75 bindsym $mod+Shift+Up move up
     76 bindsym $mod+Shift+Right move right
     77 
     78 # split in horizontal orientation
     79 bindsym $mod+Ctrl+h split h
     80 
     81 # split in vertical orientation
     82 bindsym $mod+v split v
     83 
     84 # enter fullscreen mode for the focused container
     85 bindsym $mod+f fullscreen toggle
     86 
     87 # change container layout (stacked, tabbed, toggle split)
     88 bindsym $mod+s layout stacking
     89 bindsym $mod+w layout tabbed
     90 bindsym $mod+e layout toggle split
     91 
     92 # toggle tiling / floating
     93 bindsym $mod+t floating toggle
     94 
     95 # change focus between tiling / floating windows
     96 bindsym $jod+space focus mode_toggle
     97 
     98 # focus the parent container
     99 bindsym $mod+a focus parent
    100 
    101 # focus the child container
    102 #bindsym $mod+d focus child
    103 
    104 # Define names for default workspaces for which we configure key bindings later on.
    105 # We use variables to avoid repeating the names in multiple places.
    106 set $ws1 "1:Α"
    107 set $ws2 "2:Β"
    108 set $ws3 "3:Γ"
    109 set $ws4 "4:Δ"
    110 set $ws5 "5:Ε"
    111 set $ws6 "6:ΣΤ"
    112 set $ws7 "7:Ζ"
    113 set $ws8 "8:Η"
    114 set $ws9 "9:Θ"
    115 set $ws10 "10:Ι"
    116 
    117 # switch to workspace
    118 bindsym $mod+1 workspace number $ws1
    119 bindsym $mod+2 workspace number $ws2
    120 bindsym $mod+3 workspace number $ws3
    121 bindsym $mod+4 workspace number $ws4
    122 bindsym $mod+5 workspace number $ws5
    123 bindsym $mod+6 workspace number $ws6
    124 bindsym $mod+7 workspace number $ws7
    125 bindsym $mod+8 workspace number $ws8
    126 bindsym $mod+9 workspace number $ws9
    127 bindsym $mod+0 workspace number $ws10
    128 
    129 # move focused container to workspace
    130 bindsym $mod+Ctrl+1 move container to workspace number $ws1
    131 bindsym $mod+Ctrl+2 move container to workspace number $ws2
    132 bindsym $mod+Ctrl+3 move container to workspace number $ws3
    133 bindsym $mod+Ctrl+4 move container to workspace number $ws4
    134 bindsym $mod+Ctrl+5 move container to workspace number $ws5
    135 bindsym $mod+Ctrl+6 move container to workspace number $ws6
    136 bindsym $mod+Ctrl+7 move container to workspace number $ws7
    137 bindsym $mod+Ctrl+8 move container to workspace number $ws8
    138 bindsym $mod+Ctrl+9 move container to workspace number $ws9
    139 bindsym $mod+Ctrl+0 move container to workspace number $ws10
    140 
    141 # reload the configuration file
    142 bindsym $mod+Ctrl+c reload
    143 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
    144 bindsym $mod+Ctrl+r restart
    145 # exit i3 (logs you out of your X session)
    146 bindsym $mod+Ctrl+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'"
    147 
    148 # resize window (you can also use the mouse for that)
    149 mode "resize" {
    150         # These bindings trigger as soon as you enter the resize mode
    151 
    152         # Pressing left will shrink the window’s width.
    153         # Pressing right will grow the window’s width.
    154         # Pressing up will shrink the window’s height.
    155         # Pressing down will grow the window’s height.
    156         bindsym l resize shrink width 10 px or 10 ppt
    157         bindsym j resize grow height 10 px or 10 ppt
    158         bindsym k resize shrink height 10 px or 10 ppt
    159         bindsym h resize grow width 10 px or 10 ppt
    160 
    161         # same bindings, but for the arrow keys
    162         bindsym Left resize shrink width 10 px or 10 ppt
    163         bindsym Down resize grow height 10 px or 10 ppt
    164         bindsym Up resize shrink height 10 px or 10 ppt
    165         bindsym Right resize grow width 10 px or 10 ppt
    166 
    167         # back to normal: Enter or Escape or $mod+r
    168         bindsym Return mode "default"
    169         bindsym Escape mode "default"
    170         bindsym $mod+r mode "default"
    171 }
    172 
    173 ################# i3 gaps next #################
    174 # Settings for I3 next gap git
    175 # https://github.com/Airblader/i3/tree/gaps-next
    176 # delete or uncomment the following lines if you do not have it or do not
    177 # want it
    178 for_window [class="^.*"] border pixel 2 
    179 gaps inner 10
    180 gaps outer 20
    181 #smart_gaps on
    182 smart_borders on
    183 
    184 #exec --no startup-id wal -i Pictures/Wallpapers/papes/1588311850658.jpg
    185 #exec --no startup-id wal -i Pictures/Wallpapers/papes/AHDWKyF.jpg
    186 #exec --no startup-id wal -i Pictures/Wallpapers/papes/IdeYv12.jpg
    187 #exec --no-startup-id wal -i Pictures/mountain.jpg
    188 #exec --no-startup-id wal -i Pictures/wolf/kampinos_wilki_zwierzeta_2000pxperfect2.jpg
    189 #feh --bg-fill ~/Pictures/wolf/kampinos_wilki_zwierzeta_2000px2.jpg #wolves_highcon.jpg #~/Pictures/light1.jpg #winter-ebony
    190 
    191 #exec --no-startup-id compton
    192 # 
    193 #exec --no-startup-id dunst
    194 #
    195 #exec --no-startup-id i3-battery-popup -n -D -L 20 -l 10
    196 
    197 bindsym $mod+r mode "resize"
    198 
    199 # Start i3bar to display a workspace bar (plus the system information i3status
    200 # finds out, if available)
    201 bar {
    202 	strip_workspace_numbers yes
    203         status_command i3blocks
    204 	position top
    205 
    206 	colors {
    207 	focused_workspace  #CECECE #CECECE #000000
    208    	}
    209 }
    210 
    211 bindsym $mod+m mode "move" focus floating
    212 mode "move" {
    213     bindsym $mod+Tab focus right
    214 
    215     bindsym Left  move left
    216     bindsym Down  move down
    217     bindsym Up    move up
    218     bindsym Right move right
    219 
    220     bindsym h     move left
    221     bindsym j     move down
    222     bindsym k     move up
    223     bindsym l     move right
    224 
    225     # back to normal: Enter or Escape
    226     bindsym Return mode "default"
    227     bindsym Escape mode "default"
    228 }