spacepaste

  1.  
  2. set $mod Mod1
  3. # load compton
  4. exec --no-startup-id compton -f --vsync opengl --backend xr_glx_hybrid --xrander-sync --xrender-sync-fence --vsync-use-glfinish --paint-on-overlay
  5. exec_always --no-startup-id compton --opacity-rule '50:window_type = "dock" && class_g = "i3bar"'
  6. # font
  7. font pango: monospace 6
  8. # thin borders
  9. hide_edge_borders both
  10. # drag windows
  11. floating_modifier $mod
  12. # change focus
  13. bindsym $mod+h focus left
  14. bindsym $mod+j focus down
  15. bindsym $mod+k focus up
  16. bindsym $mod+l focus right
  17. # Examples
  18. gaps inner 5
  19. gaps outer 5
  20. #smart_gaps on
  21. #lock and shutdown
  22. bindsym $mod+x exec i3lock --color 000000
  23. bindsym $mod+Shift+x exec shutdown -h now
  24. # get rid of gaps
  25. bindsym $mod+Shift+d gaps inner current set 0; gaps outer current set 0
  26. bindsym $mod+Shift+c gaps inner current set 8; gaps outer current set 3
  27. # move focused window
  28. bindsym $mod+Shift+h move left
  29. bindsym $mod+Shift+j move down
  30. bindsym $mod+Shift+k move up
  31. bindsym $mod+Shift+l move right
  32. #bindsym $mod+y move left 30
  33. #bindsym $mod+u move down 30
  34. #bindsym $mod+i move up 30
  35. #bindsym $mod+o move right 30
  36. # split in horizontal orientation
  37. bindsym $mod+b split h
  38. # split in vertical orientation
  39. bindsym $mod+v split v
  40. # enter fullscreen mode for the focused container
  41. bindsym $mod+f fullscreen
  42. # change container layout
  43. bindsym $mod+s layout stacking
  44. bindsym $mod+w layout tabbed
  45. bindsym $mod+e layout toggle split
  46. # toggle tiling / floating
  47. bindsym $mod+space floating toggle
  48. # change focus between tiling / floating windows
  49. bindsym Mod4+space focus mode_toggle
  50. # focus the parent container
  51. bindsym $mod+a focus parent
  52. set $workspace1 "一"
  53. set $workspace2 "二"
  54. set $workspace3 "三"
  55. set $workspace4 "四"
  56. set $workspace5 "五"
  57. set $workspace6 "六"
  58. set $workspace7 "七"
  59. set $workspace8 "八"
  60. set $workspace9 "九"
  61. set $workspace10 "十"
  62. # switch to workspace
  63. bindsym $mod+1 workspace $workspace1
  64. bindsym $mod+2 workspace $workspace2
  65. bindsym $mod+3 workspace $workspace3
  66. bindsym $mod+4 workspace $workspace4
  67. bindsym $mod+5 workspace $workspace5
  68. bindsym $mod+6 workspace $workspace6
  69. bindsym $mod+7 workspace $workspace7
  70. bindsym $mod+8 workspace $workspace8
  71. bindsym $mod+9 workspace $workspace9
  72. bindsym $mod+0 workspace $workspace10
  73. # move focused container to workspace
  74. bindsym $mod+Shift+1 move container to workspace $workspace1
  75. bindsym $mod+Shift+2 move container to workspace $workspace2
  76. bindsym $mod+Shift+3 move container to workspace $workspace3
  77. bindsym $mod+Shift+4 move container to workspace $workspace4
  78. bindsym $mod+Shift+5 move container to workspace $workspace5
  79. bindsym $mod+Shift+6 move container to workspace $workspace6
  80. bindsym $mod+Shift+7 move container to workspace $workspace7
  81. bindsym $mod+Shift+8 move container to workspace $workspace8
  82. bindsym $mod+Shift+9 move container to workspace $workspace9
  83. bindsym $mod+Shift+0 move container to workspace $workspace10
  84. # reload the configuration file
  85. #bindsym $mod+Shift+c reload
  86. # restart i3 inplace
  87. bindsym $mod+Shift+r restart
  88. # exit i3
  89. bindsym $mod+Shift+e exec "i3-msg exit" #"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'"
  90. #bindsym $mod+Shift+e exec /home/joseph/.i3/scripts/exit_menu
  91. # resize window (you can also use the mouse for that)
  92. mode "resize" {
  93. bindsym h resize shrink width 10 px or 10 ppt
  94. bindsym j resize grow height 10 px or 10 ppt
  95. bindsym k resize shrink height 10 px or 10 ppt
  96. bindsym l resize grow width 10 px or 10 ppt
  97. bindsym Left resize shrink width 10 px or 10 ppt
  98. bindsym Down resize grow height 10 px or 10 ppt
  99. bindsym Up resize shrink height 10 px or 10 ppt
  100. bindsym Right resize grow width 10 px or 10 ppt
  101. bindsym Return mode "default"
  102. bindsym Escape mode "default"
  103. }
  104. # move
  105. bindsym $mod+m mode "move" focus floating
  106. mode "move"{
  107. bindsym Left move left
  108. bindsym Right move right
  109. bindsym Up move up
  110. bindsym Down move down
  111. bindsym h move left
  112. bindsym j move down
  113. bindsym k move up
  114. bindsym l move right
  115. bindsym Return mode "default"
  116. bindsym Escape mode "default"
  117. }
  118. # resize mode
  119. bindsym $mod+r mode "resize"
  120. #some colors for thought
  121. #DEC VT100 light gray: #dddddd
  122. #DEC VT100 light blue: #99ddff
  123. #DEC VT100 white: #ffffff
  124. #Green phosphor terminal: #33ff66
  125. #Amber phosphor terminal: #ffff33
  126. # white with hint of yellow: e8e9ca
  127. # the previous text color: f3f4f5
  128. # 181818 background colors
  129. set $bg-color #000000
  130. set $inactive-bg-color #000000
  131. set $text-color #ff3333
  132. ###e8e9ca text color
  133. set $inactive-text-color #ff0000
  134. #55aa55
  135. #676E7D
  136. #inactive text color
  137. set $urgent-bg-color #E53935
  138. #Resize i3-gaps
  139. #bindsym Mod4+s gaps inner current plus 5
  140. #bindsym Mod4+shift+s gaps inner current minus 5
  141. # window colors
  142. # border background text indicator
  143. client.focused $bg-color $bg-color $text-color #ff3333
  144. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #ff3333
  145. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #ff3333
  146. client.urgent $urgent-bg-color $urgent-bg-color $text-color #333333
  147. # wimdow settings
  148. new_window none
  149. # bar
  150. bar {
  151. # font pongo: hack 8
  152. position top
  153. # status_command i3blocks
  154. colors {
  155. background $bg-color
  156. separator #000000
  157. # border background text
  158. focused_workspace $bg-color $bg-color $text-color
  159. inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  160. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  161. }
  162. }
  163. # sticky window
  164. bindsym $mod+Shift+s sticky toggle
  165. # floating
  166. # for_window [class="qTox"] floating enable
  167. # for_window [class="Pavucontrol"] floating enable
  168. # for_window [class="Skype"] floating enable
  169. # default workspaces
  170. # assign [class="Spotify"] $workspace10
  171. # assign [class="Skype"] $workspace9
  172. # assign [class="qTox"] $workspace9
  173. # workspace default monitors
  174. # workspace $workspace1 output DVI-I-2
  175. # workspace $workspace2 output DVI-I-2
  176. # workspace $workspace3 output DVI-I-2
  177. # workspace $workspace4 output DVI-I-2
  178. # workspace $workspace5 output DVI-I-2
  179. # workspace $workspace6 output DVI-I-2
  180. # workspace $workspace9 output DVI-I-2
  181. # workspace $workspace10 output DVI-I-2
  182. # key-bindings
  183. ##ALSA audio keybindings
  184. #bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q sset Master 5%+ ; exec --no-startup-id pkill -RTMIN+10 i3blocks
  185. #bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q sset Master 5%- ; exec --no-startup-id pkill -RTMIN+10 i3blocks
  186. #bindsym XF86AudioMute exec --no-startup-id amixer -q sset Master toggle ; exec --no-startup-id pkill -RTMIN+10 i3blocks
  187. ## Pulse-audio keybindings
  188. #bindsym XF86AudioraiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  189. #bindsym XF86AudiolowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  190. #bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  191. #bindsym Mod1+i exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  192. #bindsym Mod1+o exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  193. #bindsym Mod1+u exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  194. bindsym $mod+z gaps outer current plus 2
  195. bindsym $mod+Shift+z gaps outer current minus 2
  196. # screen brightness controls
  197. #bindsym XF86MonBrightnessUp exec xbacklight -inc 20
  198. #bindsym XF86MonBrightnessDown exec xbacklight -dec 20
  199. #bindsym XF86AudioPlay exec playerctl play-pause
  200. #bindsym XF86AudioPause exec playerctl play-pause
  201. #bindsym XF86AudioNext exec playerctl next
  202. #bindsym XF86AudioPrev exec playerctl previous
  203. bindsym $mod+Shift+w exec firefox
  204. bindsym $mod+Return exec xfce4-terminal
  205. bindsym $mod+q kill
  206. bindsym Print exec screenshot
  207. bindsym $mod+d exec dmenu_run -nb '#000000' -sf '#ff3333' -sb '#005577' -nf '#ff3333'
  208. bindsym $mod+p exec rofi
  209. bindsym Mod4+n exec wicd-client
  210. bindsym Mod4+w exec firefox
  211. bindsym Mod4+f exec thunar
  212. bindsym Mod4+d exec deluge
  213. # user made tor browser keybindings
  214. # tor browser stable
  215. bindsym Mod4+t exec cd /home/joseph/Downloads/tor/tor-browser_en-US && ./start-tor-browser.desktop --detach && exit
  216. # tor browser hardened
  217. bindsym Mod4+h exec cd /home/joseph/Downloads/tor/tor-browser-en-US-hardened/tor-browser && ./start-tor-browser.desktop --detach && exit
  218. # tor browser experimental
  219. bindsym Mod4+y exec cd /home/joseph/Downloads/tor/tor-browser-en-US-experimental/tor-browser_en-US && ./start-tor-browser.desktop --detach && exit
  220. # shutdown scripts
  221. bindsym Mod4+shift+p exec systemctl poweroff
  222. #bindsym Mod4+shift+z exec shutdown -h now
  223. #bindsym Mod1+shift+z exec shutdown -h now
  224. # startup
  225. # set Wallpaper
  226. exec_always --no-startup-id feh --bg-center /home/joseph/wallpapers-large/wallpaper-accepted/finished_project_32.png /home/joseph/wallpapers-large/wallpaper-accepted/miku-900/p.jpg
  227. # set monitor
  228. #exec --no-startup-id xrandr --output DisplayPort-0 --mode 1280x1024 --output VGA-0 --mode 1600x900 --right-of DisplayPort-0
  229. #exec_always --no-startup-id xrandr --output HDMI-0 --off --output DVI-I-1 --off --output DVI-I-0 --off --output DVI-I-3 --mode 1366x768 --pos 0x0 --rotate normal --output DVI-I-2 --mode 1366x768 --pos 1366x0 --rotate normal
  230. # exec --no-startup-id spotify
  231. # exec --no-startup-id skype
  232. # Keys
  233. exec_always xmodmap -e "clear lock" #disable caps lock switch
  234. exec_always xmodmap -e "keysym Caps_Lock = Escape" #set caps_lock as escape
  235. # exec --no-startup-id compton -bf
  236.