Advertisement
arch-toto

pi_i3conf

Feb 16th, 2021 (edited)
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.80 KB | None | 0 0
  1. [toty@pi i3]$ hostnamectl && i3 --version && ls -l && cat config
  2.    Static hostname: pi
  3.          Icon name: computer
  4.         Machine ID: f2df9c83966d4e8abb4c09be21956337
  5.            Boot ID: b87759ce3dc5468e87112bd879fd4231
  6.   Operating System: Arch Linux ARM
  7.             Kernel: Linux 5.10.16-1-ARCH
  8.       Architecture: arm64
  9. i3 version 4.19.1 (2021-02-01) © 2009 Michael Stapelberg and contributors
  10. total 12
  11. -rw-r--r-- 1 toty wheel 10289 Feb 16 04:32 config
  12. # This file has been auto-generated by i3-config-wizard(1).
  13. # It will not be overwritten, so edit it as you like.
  14. #
  15. # Should you change your keyboard layout some time, delete
  16. # this file and re-run i3-config-wizard(1).
  17. #
  18.  
  19. # i3 config file (v4)
  20. #
  21. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  22.  
  23. set $mod Mod4
  24.  
  25. # Font for window titles. Will also be used by the bar unless a different font
  26. # is used in the bar {} block below.
  27. #font pango:monospace 8
  28.  
  29. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  30. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  31. font pango:Ubuntu Mono, FontAwesome 12
  32. #font pango:DejaVu Sans Mono 12
  33.  
  34. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  35. # they are included here as an example. Modify as you see fit.
  36.  
  37. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  38. # screen before suspend. Use loginctl lock-session to lock your screen.
  39. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  40.  
  41.  
  42. # Use Mouse+$mod to drag floating windows to their wanted position
  43. floating_modifier $mod
  44.  
  45.  
  46.  
  47. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  48. # installed.
  49. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  50.  
  51.  
  52.  
  53.  
  54. ################################################################
  55. ###################### WINDOWS COLORS ##########################
  56. ################################################################
  57.  
  58. ################################################################
  59. #colorclass               border    bkground  text      indic     child
  60. #                                                                 border
  61. ################################################################
  62. #client.focused           #101011   #05FAB0   #101011   #101011
  63.  
  64. #client.focused            #4c7899   #285577   #ffffff   #2e9ef4   #285577
  65. #client.focused_inactive   #333333   #5f676a   #ffffff   #484e50   #5f676a
  66. #client.unfocused          #333333   #222222   #888888   #292d2e   #222222
  67. #client.urgent             #2f343a   #900000   #ffffff   #900000   #900000
  68. #client.placeholder        #000000   #0c0c0c   #ffffff   #000000   #0c0c0c
  69. ################################################################
  70.  
  71. # Set colors from Xresources
  72. # Change 'color7' and 'color2' to whatever colors you want i3 to use
  73. # from the generated scheme.
  74. # NOTE: The '#f0f0f0' in the lines below is the color i3 will use if
  75. # it fails to get colors from Xresources.
  76. set_from_resource $fg i3wm.color7 #f0f0f0
  77. set_from_resource $bg i3wm.color2 #f0f0f0
  78.  
  79. # class                 border  backgr. text indicator child_border
  80. client.focused          $bg     $bg     $fg  $bg       $bg
  81. client.focused_inactive $bg     $bg     $fg  $bg       $bg
  82. client.unfocused        $bg     $bg     $fg  $bg       $bg
  83. client.urgent           $bg     $bg     $fg  $bg       $bg
  84. client.placeholder      $bg     $bg     $fg  $bg       $bg
  85.  
  86. client.background       $bg
  87.  
  88. # PROTIP: You can also dynamically set dmenu's colors this way:
  89. #bindsym $mod+d exec dmenu_run -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
  90.  
  91.  
  92. ################################################################
  93. ###################### TITLE POSITION ##########################
  94. ################################################################
  95.  
  96. title_align center
  97.  
  98. ################################################################
  99. ################# WINDOWS & MOVIN COMMANDS #####################
  100. ################################################################
  101.  
  102. # alternatively, you can use the cursor keys:
  103. bindsym $mod+Left focus left
  104. bindsym $mod+Down focus down
  105. bindsym $mod+Up focus up
  106. bindsym $mod+Right focus right
  107.  
  108. # move focused window
  109. bindsym $mod+Shift+j move left
  110. bindsym $mod+Shift+k move down
  111. bindsym $mod+Shift+l move up
  112. bindsym $mod+Shift+semicolon move right
  113.  
  114. # alternatively, you can use the cursor keys:
  115. bindsym $mod+Shift+Left move left
  116. bindsym $mod+Shift+Down move down
  117. bindsym $mod+Shift+Up move up
  118. bindsym $mod+Shift+Right move right
  119.  
  120. # split in horizontal orientation
  121. bindsym $mod+h split h
  122.  
  123. # split in vertical orientation
  124. bindsym $mod+v split v
  125.  
  126. # enter fullscreen mode for the focused container
  127. bindsym $mod+f fullscreen toggle
  128.  
  129. # change container layout (stacked, tabbed, toggle split)
  130.  
  131. bindsym $mod+w layout tabbed
  132. bindsym $mod+e layout toggle split
  133.  
  134. # toggle tiling / floating
  135. bindsym $mod+Shift+space floating toggle
  136.  
  137. # change focus between tiling / floating windows
  138. bindsym $mod+space focus mode_toggle
  139.  
  140. # focus the parent container
  141. bindsym $mod+a focus parent
  142.  
  143. #hide container borders adjacent to the screen edges
  144. hide_edge_borders both
  145.  
  146. # focus the child container
  147. #bindsym $mod+d focus child
  148.  
  149. # Define names for default workspaces for which we configure key bindings later on.
  150. # We use variables to avoid repeating the names in multiple places.
  151. ################################################################
  152.  
  153.  
  154. ################################################################
  155. ###################### WORKSPACE ICONS #########################
  156. ################################################################
  157.  
  158. set $ws1 "1:"
  159. set $ws2 "2:"
  160. set $ws3 "3:"
  161. set $ws4 "4:"
  162. set $ws5 "5:"
  163. set $ws6 "6:"
  164. set $ws7 "7:"
  165. set $ws8 "8:"
  166. set $ws9 "9"
  167. #set $ws10 "10"
  168.  
  169. # switch to workspace
  170.  
  171. bindsym $mod+1 workspace $ws1
  172. bindsym $mod+2 workspace $ws2
  173. bindsym $mod+3 workspace $ws3
  174. bindsym $mod+4 workspace $ws4
  175. bindsym $mod+5 workspace $ws5
  176. bindsym $mod+6 workspace $ws6
  177. bindsym $mod+7 workspace $ws7
  178. bindsym $mod+8 workspace $ws8
  179. bindsym $mod+9 workspace $ws9
  180. #bindsym $mod+0 workspace 10
  181.  
  182. # move focused container to workspace
  183. bindsym $mod+Shift+1 move container to workspace $ws1
  184. bindsym $mod+Shift+2 move container to workspace $ws2
  185. bindsym $mod+Shift+3 move container to workspace $ws3
  186. bindsym $mod+Shift+4 move container to workspace $ws4
  187. bindsym $mod+Shift+5 move container to workspace $ws5
  188. bindsym $mod+Shift+6 move container to workspace $ws6
  189. bindsym $mod+Shift+7 move container to workspace $ws7
  190. bindsym $mod+Shift+8 move container to workspace $ws8
  191. bindsym $mod+Shift+9 move container to workspace $ws9
  192. #bindsym $mod+Shift+0 move container to workspace $ws10
  193.  
  194. ################################################################
  195.  
  196. # reload the configuration file
  197. bindsym $mod+Shift+c reload
  198. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  199. bindsym $mod+Shift+r restart
  200. # exit i3 (logs you out of your X session)
  201. 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'"
  202.  
  203.  
  204.  
  205. # resize window (you can also use the mouse for that)
  206. mode "resize" {
  207.         # These bindings trigger as soon as you enter the resize mode
  208.  
  209.         # Pressing left will shrink the window’s width.
  210.         # Pressing right will grow the window’s width.
  211.         # Pressing up will shrink the window’s height.
  212.         # Pressing down will grow the window’s height.
  213.         bindsym j resize shrink width 10 px or 10 ppt
  214.         bindsym k resize grow height 10 px or 10 ppt
  215.         bindsym l resize shrink height 10 px or 10 ppt
  216.         bindsym semicolon resize grow width 10 px or 10 ppt
  217.  
  218.         # same bindings, but for the arrow keys
  219.         bindsym Left resize shrink width 10 px or 10 ppt
  220.         bindsym Down resize grow height 10 px or 10 ppt
  221.         bindsym Up resize shrink height 10 px or 10 ppt
  222.         bindsym Right resize grow width 10 px or 10 ppt
  223.  
  224.         # back to normal: Enter or Escape or $mod+r
  225.         bindsym Return mode "default"
  226.         bindsym Escape mode "default"
  227.         bindsym $mod+r mode "default"
  228. }
  229.  
  230. bindsym $mod+r mode "resize"
  231.  
  232. ################################################################
  233. ################### STARTUP APPS ###############################
  234. ################################################################
  235.  
  236. # start rofi (a program launcher)
  237. bindsym $mod+d exec --no-startup-id "rofi -modi window,drun,run -show drun -sidebar-mode -terminal termite -color-window '#000000, #000000, #000000' -color-normal '#000000, #b3e774, #000000, #b3e774, #000000' -color-active '#000000, #b3e774, #000000, #b3e774, #000000' -color-urgent '#000000, #b3e774, #000000, #b3e774, #000000'"
  238.  
  239. # normal windows firefox
  240. bindsym $mod+0 exec --no-startup-id firefox
  241.  
  242. # private windows firefox
  243. bindsym $mod+p exec --no-startup-id firefox --private-window
  244.  
  245. # other apps
  246. exec --no-startup-id nitrogen --restore
  247. exec --no-startup-id nm-applet
  248. #exec --no-startup-id pasystray
  249. #exec --no-startup-id picom
  250. exec --no-startup-id wal -R
  251.  
  252. # Use pactl to adjust volume in PulseAudio.
  253. set $refresh_i3status killall -SIGUSR1 i3status
  254. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  255. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  256. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  257. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  258.  
  259. # start a terminal
  260. bindsym $mod+Return exec --no-startup-id terminator
  261.  
  262. # kill focused window
  263. bindsym $mod+Shift+q kill
  264. # change focus
  265. bindsym $mod+j focus left
  266. bindsym $mod+k focus down
  267. bindsym $mod+l focus up
  268. bindsym $mod+semicolon focus right
  269.  
  270. ################################################################
  271. #
  272. #GAPS
  273. smart_gaps on
  274. gaps inner 20
  275. gaps outer 2
  276. smart_borders on
  277.  
  278. # Start i3bar to display a workspace bar (plus the system information i3status
  279. # finds out, if available)
  280. bar {
  281.     status_command i3blocks -c /home/toty/i3blocks.conf
  282.     position top
  283.     font pango:monospace 12
  284. colors {
  285.         background #1E9EA8
  286.         #background #000000
  287.     focused_workspace #EA5155 #EA5155 #000000
  288.     active_workspace #EA5155 #EA5155 #888888
  289.     inactive_workspace #EA5155 #EA5155 #f1f1f1
  290.     urgent_workspace #EA5155 #EA5155 #ffffff
  291.  
  292. #   focused_workspace #CECECE #CECECE #000000
  293. #   active_workspace #333333 #333333 #888888
  294. #   inactive_workspace #CECECE #333333 #f1f1f1
  295. #   urgent_workspace #eb709b #eb709b #ffffff
  296.     }
  297. }
  298.  
  299.  
  300. # SETEAR# COMANDO PARA BLOQUEAR PANTALLA + WALLPAPER + QUE NO MUESTRE KEYPRESS
  301. bindsym $mod+shift+x exec --no-startup-id i3lock -c 000000
  302.  
  303.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement