arch-toto

t420_i3conf

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