Guest User

Untitled

a guest
Nov 5th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.48 KB | None | 0 0
  1. # i3 config file (v4)
  2. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  3.  
  4. # Set mod key (Mod1=<Alt>, Mod4=<Super>)
  5. set $mod Mod1
  6.  
  7. # set default desktop layout (default is tiling)
  8. # workspace_layout tabbed <stacking|tabbed>
  9.  
  10. # Configure border style <normal|1pixel|pixel xx|none|pixel>
  11. default_border pixel 1
  12. default_floating_border normal
  13.  
  14. # Hide borders
  15. hide_edge_borders none
  16.  
  17. # change borders
  18. bindsym $mod+u border none
  19. bindsym $mod+y border pixel 1
  20. bindsym $mod+n border normal
  21.  
  22. # Font for window titles. Will also be used by the bar unless a different font
  23. # is used in the bar {} block below.
  24. font xft:Roboto 12
  25.  
  26. # Use Mouse+$mod to drag floating windows
  27. floating_modifier $mod
  28.  
  29. # start a terminal
  30. bindsym $mod+Return exec urxvt
  31.  
  32. # kill focused window
  33. bindsym $mod+Shift+q kill
  34.  
  35. # start program launcher
  36. bindsym $mod+d exec dmenu_run -fn 'Roboto' -h '25' -nb '#545454' -sb '#545454' -nf '#a5a5a5' -sf '#ffffff'
  37.  
  38. # launch categorized menu
  39. bindsym $mod+z exec --no-startup-id morc_menu
  40.  
  41. ################################################################################################
  42. ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
  43. ################################################################################################
  44.  
  45. exec --no-startup-id volumeicon
  46. bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
  47. #exec --no-startup-id pulseaudio
  48. #exec --no-startup-id pa-applet
  49. #bindsym $mod+Ctrl+m exec pavucontrol
  50.  
  51. ################################################################################################
  52.  
  53. # Screen brightness controls
  54. # bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
  55. # bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
  56.  
  57. # Different mute controls
  58. bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
  59.  
  60. # Start Applications
  61. bindsym $mod+Ctrl+b exec terminal -e 'bmenu'
  62. bindsym $mod+F2 exec palemoon
  63. bindsym $mod+F3 exec pcmanfm
  64. # bindsym $mod+F3 exec ranger
  65. bindsym $mod+Shift+F3 exec pcmanfm_pkexec
  66. bindsym $mod+F5 exec terminal -e 'mocp'
  67. bindsym $mod+t exec --no-startup-id pkill picom
  68. bindsym $mod+Ctrl+t exec --no-startup-id picom -b
  69. bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
  70. bindsym Print exec --no-startup-id i3-scrot
  71. bindsym $mod+Delete --release exec --no-startup-id maim -u ~/Pictures/Screenshots/$(date +%F-%H%M%S)_$(xdpyinfo | awk '/dimensions/{print $2}')_maim.png
  72. bindsym $mod+Shift+Delete --release exec --no-startup-id maim -s -u ~/Pictures/Screenshots/$(date +%F-%H%M%S)_$(xdpyinfo | awk '/dimensions/{print $2}')_maim.png
  73. bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf
  74. bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
  75.  
  76. # focus_follows_mouse no
  77.  
  78. # change focus
  79. bindsym $mod+j focus left
  80. bindsym $mod+k focus down
  81. bindsym $mod+l focus up
  82. bindsym $mod+semicolon focus right
  83.  
  84. # alternatively, you can use the cursor keys:
  85. bindsym $mod+Left focus left
  86. bindsym $mod+Down focus down
  87. bindsym $mod+Up focus up
  88. bindsym $mod+Right focus right
  89.  
  90. # move focused window
  91. bindsym $mod+Shift+j move left
  92. bindsym $mod+Shift+k move down
  93. bindsym $mod+Shift+l move up
  94. bindsym $mod+Shift+semicolon move right
  95.  
  96. # alternatively, you can use the cursor keys:
  97. bindsym $mod+Shift+Left move left
  98. bindsym $mod+Shift+Down move down
  99. bindsym $mod+Shift+Up move up
  100. bindsym $mod+Shift+Right move right
  101.  
  102. # workspace back and forth (with/without active container)
  103. workspace_auto_back_and_forth yes
  104. bindsym $mod+b workspace back_and_forth
  105. bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  106.  
  107. # split orientation
  108. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  109. bindsym $mod+v split v;exec notify-send 'tile vertically'
  110. bindsym $mod+q split toggle
  111.  
  112. # toggle fullscreen mode for the focused container
  113. bindsym $mod+f fullscreen toggle
  114.  
  115. # change container layout (stacked, tabbed, toggle split)
  116. bindsym $mod+s layout stacking
  117. bindsym $mod+w layout tabbed
  118. bindsym $mod+e layout toggle split
  119.  
  120. # toggle tiling / floating
  121. bindsym $mod+Shift+space floating toggle
  122.  
  123. # change focus between tiling / floating windows
  124. bindsym $mod+space focus mode_toggle
  125.  
  126. # toggle sticky
  127. bindsym $mod+Shift+s sticky toggle
  128.  
  129. # focus the parent container
  130. bindsym $mod+a focus parent
  131.  
  132. # move the currently focused window to the scratchpad
  133. bindsym $mod+Shift+minus move scratchpad
  134.  
  135. # Show the next scratchpad window or hide the focused scratchpad window.
  136. # If there are multiple scratchpad windows, this command cycles through them.
  137. bindsym $mod+minus scratchpad show
  138.  
  139. #navigate workspaces next / previous
  140. bindsym $mod+Ctrl+Right workspace next
  141. bindsym $mod+Ctrl+Left workspace prev
  142.  
  143. # Workspace names
  144. # to display names or symbols instead of plain workspace numbers you can use
  145. # something like: set $ws1 1:mail
  146. # set $ws2 2:
  147. set $ws1 1Terminal
  148. set $ws2 2Browser
  149. set $ws3 3Games
  150. set $ws4 4Utilities
  151. set $ws5 5Social
  152. set $ws6 6Recording
  153. set $ws7 7Images
  154. set $ws8 8School
  155. set $ws9 9Misc
  156.  
  157. # switch to workspace
  158. bindsym $mod+1 workspace $ws1
  159. bindsym $mod+2 workspace $ws2
  160. bindsym $mod+3 workspace $ws3
  161. bindsym $mod+4 workspace $ws4
  162. bindsym $mod+5 workspace $ws5
  163. bindsym $mod+6 workspace $ws6
  164. bindsym $mod+7 workspace $ws7
  165. bindsym $mod+8 workspace $ws8
  166. bindsym $mod+9 workspace $ws9
  167.  
  168. # Move focused container to workspace
  169. bindsym $mod+Ctrl+1 move container to workspace $ws1
  170. bindsym $mod+Ctrl+2 move container to workspace $ws2
  171. bindsym $mod+Ctrl+3 move container to workspace $ws3
  172. bindsym $mod+Ctrl+4 move container to workspace $ws4
  173. bindsym $mod+Ctrl+5 move container to workspace $ws5
  174. bindsym $mod+Ctrl+6 move container to workspace $ws6
  175. bindsym $mod+Ctrl+7 move container to workspace $ws7
  176. bindsym $mod+Ctrl+8 move container to workspace $ws8
  177. bindsym $mod+Ctrl+9 move container to workspace $ws9
  178.  
  179. # Move to workspace with focused container
  180. bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
  181. bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
  182. bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
  183. bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
  184. bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
  185. bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
  186. bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
  187. bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
  188. bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
  189.  
  190. # Open applications on specific workspaces
  191. # assign [class="Thunderbird"] $ws1
  192. # assign [class="Pale moon"] $ws2
  193. # assign [class="Pcmanfm"] $ws3
  194. assign [class="urxvt"] $ws1
  195. assign [class="firefox"] $ws2
  196. assign [class="Steam"] $ws3
  197. assign [class="minecraft-launcher"] $ws3
  198. assign [class="pcmanfm"] $ws4
  199. assign [class="pamac-manager"] $ws4
  200. assign [class="discord"] $ws5
  201.  
  202. # Open specific applications in floating mode
  203. for_window [title="alsamixer"] floating enable border pixel 1
  204. for_window [class="calamares"] floating enable border normal
  205. for_window [class="Clipgrab"] floating enable
  206. for_window [title="File Transfer*"] floating enable
  207. for_window [class="fpakman"] floating enable
  208. for_window [class="Galculator"] floating enable border pixel 1
  209. for_window [class="GParted"] floating enable border normal
  210. for_window [title="i3_help"] floating enable sticky enable border normal
  211. for_window [class="Lightdm-settings"] floating enable
  212. for_window [class="Lxappearance"] floating enable sticky enable border normal
  213. for_window [class="Manjaro-hello"] floating enable
  214. for_window [class="Manjaro Settings Manager"] floating enable border normal
  215. for_window [title="MuseScore: Play Panel"] floating enable
  216. for_window [class="Nitrogen"] floating enable sticky enable border normal
  217. for_window [class="Oblogout"] fullscreen enable
  218. for_window [class="octopi"] floating enable
  219. for_window [title="About Pale Moon"] floating enable
  220. for_window [class="Pavucontrol"] floating enable
  221. for_window [class="qt5ct"] floating enable sticky enable border normal
  222. for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
  223. for_window [class="Simple-scan"] floating enable border normal
  224. for_window [class="(?i)System-config-printer.py"] floating enable border normal
  225. for_window [class="Skype"] floating enable border normal
  226. for_window [class="Timeset-gui"] floating enable border normal
  227. for_window [class="(?i)virtualbox"] floating enable border normal
  228. for_window [class="Xfburn"] floating enable
  229.  
  230. # switch to workspace with urgent window automatically
  231. #for_window [urgent=latest] focus
  232.  
  233. # reload the configuration file
  234. bindsym $mod+Shift+c reload
  235.  
  236. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  237. bindsym $mod+Shift+r restart
  238.  
  239. # exit i3 (logs you out of your X session)
  240. 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'"
  241.  
  242. # Set shut down, restart and locking features
  243. #bindsym $mod+0 exec --no-startup-id ~/.config/rofi/power/powermenu.sh
  244. bindsym $mod+0 mode "$mode_system"
  245. set $mode_system Lock Exit Switch User Suspend Hibernate Reboot Shutdown
  246. mode "$mode_system" {
  247. bindsym l exec --no-startup-id i3exit lock, mode "default"
  248. bindsym s exec --no-startup-id i3exit suspend, mode "default"
  249. bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  250. bindsym e exec --no-startup-id i3exit logout, mode "default"
  251. bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  252. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  253. bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  254.  
  255. # exit system mode: "Enter" or "Escape"
  256. bindsym Return mode "default"
  257. bindsym Escape mode "default"
  258. }
  259.  
  260. # Resize window (you can also use the mouse for that)
  261. bindsym $mod+r mode "Resize"
  262. mode "Resize" {
  263. # These bindings trigger as soon as you enter the resize mode
  264. # Pressing left will shrink the window’s width.
  265. # Pressing right will grow the window’s width.
  266. # Pressing up will shrink the window’s height.
  267. # Pressing down will grow the window’s height.
  268. bindsym j resize shrink width 5 px or 5 ppt
  269. bindsym k resize grow height 5 px or 5 ppt
  270. bindsym l resize shrink height 5 px or 5 ppt
  271. bindsym semicolon resize grow width 5 px or 5 ppt
  272.  
  273. # same bindings, but for the arrow keys
  274. bindsym Left resize shrink width 10 px or 10 ppt
  275. bindsym Down resize grow height 10 px or 10 ppt
  276. bindsym Up resize shrink height 10 px or 10 ppt
  277. bindsym Right resize grow width 10 px or 10 ppt
  278. # smaller changes
  279. bindsym Shift+Left resize shrink width 5 px or 5 ppt
  280. bindsym Shift+Down resize grow height 5 px or 5 ppt
  281. bindsym Shift+Up resize shrink height 5 px or 5 ppt
  282. bindsym Shift+Right resize grow width 5 px or 5 ppt
  283.  
  284. # exit resize mode: Enter or Escape
  285. bindsym Return mode "default"
  286. bindsym Escape mode "default"
  287. }
  288.  
  289. # Lock screen
  290. # bindsym $mod+9 exec --no-startup-id blurlock
  291.  
  292. # Autostart applications
  293. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  294. exec --no-startup-id nitrogen --restore; sleep 1; picom -b
  295. #exec --no-startup-id manjaro-hello
  296. exec --no-startup-id nm-applet
  297. exec --no-startup-id xfce4-power-manager
  298. # exec --no-startup-id pamac-Wtray
  299. exec --no-startup-id blueman-applet
  300. # exec --no-startup-id clipit
  301. # exec_always --no-startup-id sbxkb
  302. # exec --no-startup-id start_conky_maia
  303. # exec --no-startup-id start_conky_green
  304. # exec --no-startup-id xautolock -time 10 -locker blurlock
  305. exec_always --no-startup-id ff-theme-util
  306. exec_always --no-startup-id fix_xcursor
  307.  
  308. # Color palette used for the terminal ( ~/.Xresources file )
  309. # Colors are gathered based on the documentation:
  310. # https://i3wm.org/docs/userguide.html#xresources
  311. # Change the variable name at the place you want to match the color
  312. # of your terminal like this:
  313. # [example]
  314. # If you want your bar to have the same background color as your
  315. # terminal background change the line 362 from:
  316. # background #14191D
  317. # to:
  318. # background $term_background
  319. # Same logic applied to everything else.
  320. set_from_resource $term_background background
  321. set_from_resource $term_foreground foreground
  322. set_from_resource $term_color0 color0
  323. set_from_resource $term_color1 color1
  324. set_from_resource $term_color2 color2
  325. set_from_resource $term_color3 color3
  326. set_from_resource $term_color4 color4
  327. set_from_resource $term_color5 color5
  328. set_from_resource $term_color6 color6
  329. set_from_resource $term_color7 color7
  330. set_from_resource $term_color8 color8
  331. set_from_resource $term_color9 color9
  332. set_from_resource $term_color10 color10
  333. set_from_resource $term_color11 color11
  334. set_from_resource $term_color12 color12
  335. set_from_resource $term_color13 color13
  336. set_from_resource $term_color14 color14
  337. set_from_resource $term_color15 color15
  338.  
  339. # Start i3bar to display a workspace bar (plus the system information i3status if available)
  340. bar {
  341. i3bar_command i3bar
  342. status_command i3status -c ~/.i3/i3status.conf
  343. position top
  344. separator_symbol " "
  345.  
  346. ## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
  347. # tray_output primary
  348. # tray_output eDP1
  349. # tray_output none
  350.  
  351. # bindsym --release button3 exec --no-startup-id import /tmp/latest-screenshot.png ~/Pictures
  352. bindsym button4 nop
  353. bindsym button5 nop
  354. # font xft:Roboto 12
  355. strip_workspace_numbers yes
  356.  
  357. colors {
  358.  
  359. set $bg-color #545454
  360. set $text-color #ffffff
  361. set $inactive-text-color #a5a5a5
  362. set $urgent-text-color #fc6c6a
  363.  
  364. background $bg-color
  365. statusline $text-color
  366. separator $inactive-text-color
  367.  
  368. # border backgr. text
  369. focused_workspace $bg-color $bg-color $text-color
  370. active_workspace $bg-color $bg-color $inactive-text-color
  371. inactive_workspace $bg-color $bg-color $inactive-text-color
  372. binding_mode $bg-color $bg-color $urgent-text-color
  373. urgent_workspace $bg-color $bg-color $urgent-text-color
  374. # binding_mode #2ec15d #000000 #ffffff
  375. # to show my grief^
  376. }
  377. }
  378.  
  379. # hide/unhide i3status bar
  380. bindsym $mod+m bar mode toggle
  381.  
  382. # Theme colors
  383. # class border backgr. text indic. child_border
  384. client.focused $bg-color $bg-color $text-color $text-color
  385. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $text-color
  386. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $text-color #454948
  387. client.urgent $urgent-text-color $urgent-text-color $inactive-text-color $text-color
  388. client.placeholder $bg-color $bg-color $text-color $text-color
  389.  
  390. client.background #2B2C2B
  391.  
  392. #############################
  393. ### settings for i3-gaps: ###
  394. #############################
  395.  
  396. # Set inner/outer gaps
  397. gaps inner 14
  398. gaps outer -2
  399.  
  400. # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
  401. # gaps inner|outer current|all set|plus|minus <px>
  402. # gaps inner all set 10
  403. # gaps outer all plus 5
  404.  
  405. # Smart gaps (gaps used if only more than one container on the workspace)
  406. smart_gaps on
  407.  
  408. # Smart borders (draw borders around container only if it is not the only container on this workspace)
  409. # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
  410. smart_borders on
  411.  
  412. # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
  413. set $mode_gaps Gaps: (o) outer, (i) inner
  414. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  415. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  416. bindsym $mod+Shift+g mode "$mode_gaps"
  417.  
  418. mode "$mode_gaps" {
  419. bindsym o mode "$mode_gaps_outer"
  420. bindsym i mode "$mode_gaps_inner"
  421. bindsym Return mode "default"
  422. bindsym Escape mode "default"
  423. }
  424. mode "$mode_gaps_inner" {
  425. bindsym plus gaps inner current plus 5
  426. bindsym minus gaps inner current minus 5
  427. bindsym 0 gaps inner current set 0
  428.  
  429. bindsym Shift+plus gaps inner all plus 5
  430. bindsym Shift+minus gaps inner all minus 5
  431. bindsym Shift+0 gaps inner all set 0
  432.  
  433. bindsym Return mode "default"
  434. bindsym Escape mode "default"
  435. }
  436. mode "$mode_gaps_outer" {
  437. bindsym plus gaps outer current plus 5
  438. bindsym minus gaps outer current minus 5
  439. bindsym 0 gaps outer current set 0
  440.  
  441. bindsym Shift+plus gaps outer all plus 5
  442. bindsym Shift+minus gaps outer all minus 5
  443. bindsym Shift+0 gaps outer all set 0
  444.  
  445. bindsym Return mode "default"
  446. bindsym Escape mode "default"
  447. }
  448.  
  449. # exec_always feh --bg-scale usr/share/backgrounds/my_wallpapers/SnowyForest.jpg
  450.  
  451. bindsym $mod+shift+x exec $HOME/.bin/scripts/lock.sh
  452.  
  453. bindsym XF86AudioMicMute exec urxvt
Add Comment
Please, Sign In to add comment