G2A Many GEOs
SHARE
TWEET

i3 and urxvt config

a guest Sep 3rd, 2017 1,560 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .config/i3/config:
  2. # This file has been auto-generated by i3-config-wizard(1).
  3. # It will not be overwritten, so edit it as you like.
  4. #
  5. # Should you change your keyboard layout some time, delete
  6. # this file and re-run i3-config-wizard(1).
  7. #
  8.  
  9. # i3 config file (v4)
  10. #
  11. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  12.  
  13. set $mod Mod4
  14.  
  15. # Font for window titles. Will also be used by the bar unless a different font
  16. # is used in the bar {} block below.
  17. # font pango:monospace 20
  18.  
  19. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  20. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  21. font pango:System San Francisco Display 20
  22.  
  23. # Before i3 v4.8, we used to recommend this one as the default:
  24. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  25. # The font above is very space-efficient, that is, it looks good, sharp and
  26. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  27. # X core fonts rendering does not support right-to-left and this being a bitmap
  28. # font, it doesn’t scale on retina/hidpi displays.
  29.  
  30. # Refresh urxvt
  31. bindsym $mod+u exec "xrdb ~/.Xresources"
  32.  
  33. # Use Mouse+$mod to drag floating windows to their wanted position
  34. floating_modifier $mod
  35.  
  36. # start a terminal
  37. bindsym $mod+Return exec urxvt
  38.  
  39. # start the browser
  40. set $browser vivaldi
  41. bindsym $mod+Shift+Return exec $browser
  42.  
  43. # kill focused window
  44. bindsym $mod+Shift+q kill
  45.  
  46. # start dmenu (a program launcher)
  47. bindsym $mod+d exec dmenu_run
  48. # There also is the (new) i3-dmenu-desktop which only displays applications
  49. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  50. # installed.
  51. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  52.  
  53. # change focus
  54. bindsym $mod+h focus left
  55. bindsym $mod+j focus down
  56. bindsym $mod+k focus up
  57. bindsym $mod+l focus right
  58.  
  59. # alternatively, you can use the cursor keys:
  60. bindsym $mod+Left focus left
  61. bindsym $mod+Down focus down
  62. bindsym $mod+Up focus up
  63. bindsym $mod+Right focus right
  64.  
  65. # move focused window
  66. bindsym $mod+Shift+h move left
  67. bindsym $mod+Shift+j move down
  68. bindsym $mod+Shift+k move up
  69. bindsym $mod+Shift+l move right
  70.  
  71. # alternatively, you can use the cursor keys:
  72. bindsym $mod+Shift+Left move left
  73. bindsym $mod+Shift+Down move down
  74. bindsym $mod+Shift+Up move up
  75. bindsym $mod+Shift+Right move right
  76.  
  77. # split in horizontal orientation
  78. bindsym $mod+b split h
  79.  
  80. # split in vertical orientation
  81. bindsym $mod+v split v
  82.  
  83. # enter fullscreen mode for the focused container
  84. bindsym $mod+f fullscreen toggle
  85.  
  86. # change container layout (stacked, tabbed, toggle split)
  87. bindsym $mod+s layout stacking
  88. bindsym $mod+w layout tabbed
  89. bindsym $mod+e layout toggle split
  90.  
  91. # toggle tiling / floating
  92. bindsym $mod+Shift+space floating toggle
  93.  
  94. # change focus between tiling / floating windows
  95. bindsym $mod+space focus mode_toggle
  96.  
  97. # focus the parent container
  98. bindsym $mod+a focus parent
  99.  
  100. # focus the child container
  101. bindsym $mod+z focus child
  102.  
  103. # reload the configuration file
  104. bindsym $mod+Shift+c reload
  105. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  106. bindsym $mod+Shift+r restart
  107. # exit i3 (logs you out of your X session)
  108. 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'"
  109.  
  110. # resize window (you can also use the mouse for that)
  111. bindsym $mod+r mode "resize"
  112. mode "resize" {
  113.         # These bindings trigger as soon as you enter the resize mode
  114.  
  115.         # Pressing left will shrink the window’s width.
  116.         # Pressing right will grow the window’s width.
  117.         # Pressing up will shrink the window’s height.
  118.         # Pressing down will grow the window’s height.
  119.         bindsym h resize shrink width 10 px or 10 ppt
  120.         bindsym j resize grow height 10 px or 10 ppt
  121.         bindsym k resize shrink height 10 px or 10 ppt
  122.         bindsym l resize grow width 10 px or 10 ppt
  123.  
  124.         # same bindings, but for the arrow keys
  125.         bindsym Left resize shrink width 10 px or 10 ppt
  126.         bindsym Down resize grow height 10 px or 10 ppt
  127.         bindsym Up resize shrink height 10 px or 10 ppt
  128.         bindsym Right resize grow width 10 px or 10 ppt
  129.  
  130.         # back to normal: Enter or Escape
  131.         bindsym Return mode "default"
  132.         bindsym Escape mode "default"
  133. }
  134.  
  135. # Start i3bar to display a workspace bar (plus the system information i3status
  136. # finds out, if available)
  137. bar {
  138.         font pango:FontAwesome, System San Francisco Display 20
  139.         # status_command i3status
  140.         status_command i3blocks -c ~/.config/i3/i3blocks.conf
  141.         tray_output primary
  142. }
  143.  
  144. # Pulse Audio controls
  145. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  146. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  147. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  148.  
  149. # Sreen brightness controls
  150. bindsym XF86MonBrightnessUp exec light -A 2 # increase screen brightness
  151. bindsym XF86MonBrightnessDown exec light -U 2 # decrease screen brightness
  152.  
  153. # # Touchpad controls
  154. # bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
  155. #
  156. # # Media player controls
  157. # bindsym XF86AudioPlay exec playerctl play
  158. # bindsym XF86AudioPause exec playerctl pause
  159. # bindsym XF86AudioNext exec playerctl next
  160. # bindsym XF86AudioPrev exec playerctl previous
  161.  
  162. set $ws1  "1.Desktop "
  163. set $ws2  "2.Browser "
  164. set $ws3  "3.Terminals "
  165. set $ws10 "10.Music "
  166.  
  167. # switch to workspace
  168. bindsym $mod+1 workspace $ws1
  169. bindsym $mod+2 workspace $ws2
  170. bindsym $mod+3 workspace $ws3
  171. bindsym $mod+4 workspace 4
  172. bindsym $mod+5 workspace 5
  173. bindsym $mod+6 workspace 6
  174. bindsym $mod+7 workspace 7
  175. bindsym $mod+8 workspace 8
  176. bindsym $mod+9 workspace 9
  177. bindsym $mod+0 workspace $ws10
  178.  
  179. # move focused container to workspace
  180. bindsym $mod+Shift+1 move container to workspace $ws1
  181. bindsym $mod+Shift+2 move container to workspace $ws2
  182. bindsym $mod+Shift+3 move container to workspace $ws3
  183. bindsym $mod+Shift+4 move container to workspace 4
  184. bindsym $mod+Shift+5 move container to workspace 5
  185. bindsym $mod+Shift+6 move container to workspace 6
  186. bindsym $mod+Shift+7 move container to workspace 7
  187. bindsym $mod+Shift+8 move container to workspace 8
  188. bindsym $mod+Shift+9 move container to workspace 9
  189. bindsym $mod+Shift+0 move container to workspace $ws10
  190.  
  191. # startup commands
  192. exec i3-msg "workspace $ws1; append_layout ~/.config/i3/workspace1.json"
  193. exec urxvt
  194.  
  195. exec i3-msg "workspace $ws2; append_layout ~/.config/i3/workspace2.json"
  196. exec $browser
  197.  
  198. exec i3-msg "workspace $ws3; append_layout ~/.config/i3/workspace3.json"
  199. exec urxvt
  200.  
  201. exec i3-msg "workspace $ws10; append_layout ~/.config/i3/workspace10.json"
  202. for_window [class="Spotify"] move to workspace $ws10
  203. assign [class="Rhythmbox"] $ws10
  204. exec rhythmbox
  205. exec spotify
  206.  
  207. exec i3-msg "workspace $ws1"
  208.  
  209. ~/.Xresources:
  210. #include "/home/devneal/.config/colorschemes/iTerm2-Color-Schemes/Galaxy"
  211.  
  212. URxvt.font: xft:UbuntuMono-R:size=12
  213.  
  214. ! easy font size change
  215. URxvt.perl-ext-common: font-size
  216. URxvt.keysym.C-Up:     font-size:increase
  217. URxvt.keysym.C-Down:   font-size:decrease
  218. URxvt.keysym.C-equal:  font-size:reset
  219. URxvt.keysym.C-slash:  font-size:show
  220.  
  221. ! remove scrollbar
  222. URxvt.scrollBar: false
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top