Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.13 KB | None | 0 0
  1. # mod
  2. set $mod Mod4
  3.  
  4. # font
  5. font pango: System San Francisco Display 10
  6.  
  7. # thin borders
  8. hide_edge_borders both
  9.  
  10. for_window [class="^.*"] border pixel 2
  11. gaps inner <10 of pixels>
  12. gaps outer <10 of pixels>
  13.  
  14. # drag windows
  15. floating_modifier $mod
  16.  
  17. # change focus
  18. bindsym $mod+h focus left
  19. bindsym $mod+j focus down
  20. bindsym $mod+k focus up
  21. bindsym $mod+l focus right
  22.  
  23. # lock
  24. bindsym $mod+Shift+x exec i3lock --color 475263
  25.  
  26. # move focused window
  27. bindsym $mod+Shift+h move left
  28. bindsym $mod+Shift+j move down
  29. bindsym $mod+Shift+k move up
  30. bindsym $mod+Shift+l move right
  31.  
  32. # split in horizontal orientation
  33. bindsym $mod+b split h
  34.  
  35. # split in vertical orientation
  36. bindsym $mod+v split v
  37.  
  38. # enter fullscreen mode for the focused container
  39. bindsym $mod+f fullscreen
  40.  
  41. # change container layout
  42. bindsym $mod+s layout stacking
  43. bindsym $mod+w layout tabbed
  44. bindsym $mod+e layout toggle split
  45.  
  46. # toggle tiling / floating
  47. bindsym $mod+Shift+space floating toggle
  48.  
  49. # change focus between tiling / floating windows
  50. bindsym $mod+space focus mode_toggle
  51.  
  52. # focus the parent container
  53. bindsym $mod+a focus parent
  54.  
  55. set $workspace1 "1 "
  56. set $workspace2 "2 "
  57. set $workspace3 "3 "
  58. set $workspace4 "4 "
  59. set $workspace5 "5 "
  60. set $workspace6 "6 "
  61. set $workspace7 "7 "
  62. set $workspace8 "8 "
  63. set $workspace9 "9 "
  64. set $workspace10 "10 "
  65.  
  66. # move focused container to workspace
  67. bindsym $mod+Shift+1 move container to workspace $workspace1
  68. bindsym $mod+Shift+2 move container to workspace $workspace2
  69. bindsym $mod+Shift+3 move container to workspace $workspace3
  70. bindsym $mod+Shift+4 move container to workspace $workspace4
  71. bindsym $mod+Shift+5 move container to workspace $workspace5
  72. bindsym $mod+Shift+6 move container to workspace $workspace6
  73. bindsym $mod+Shift+7 move container to workspace $workspace7
  74. bindsym $mod+Shift+8 move container to workspace $workspace8
  75. bindsym $mod+Shift+9 move container to workspace $workspace9
  76. bindsym $mod+Shift+0 move container to workspace $workspace10
  77.  
  78. # switch to workspace
  79. bindsym $mod+1 workspace $workspace1
  80. bindsym $mod+2 workspace $workspace2
  81. bindsym $mod+3 workspace $workspace3
  82. bindsym $mod+4 workspace $workspace4
  83. bindsym $mod+5 workspace $workspace5
  84. bindsym $mod+6 workspace $workspace6
  85. bindsym $mod+7 workspace $workspace7
  86. bindsym $mod+8 workspace $workspace8
  87. bindsym $mod+9 workspace $workspace9
  88. bindsym $mod+0 workspace $workspace10
  89.  
  90. # reload the configuration file
  91. bindsym $mod+Shift+c reload
  92.  
  93. # restart i3 inplace
  94. bindsym $mod+Shift+r restart
  95.  
  96. # exit i3
  97. bindsym $mod+Shift+e exec /home/victorbuch/.config/i3/scripts/exit_menu
  98.  
  99.  
  100. # resize window (you can also use the mouse for that)
  101. mode "resize" {
  102. bindsym h resize shrink width 10 px or 10 ppt
  103. bindsym j resize grow height 10 px or 10 ppt
  104. bindsym k resize shrink height 10 px or 10 ppt
  105. bindsym l resize grow width 10 px or 10 ppt
  106.  
  107. bindsym Lefj resize shrink width 10 px or 10 ppt
  108. bindsym Down resize grow height 10 px or 10 ppt
  109. bindsym Up resize shrink height 10 px or 10 ppt
  110. bindsym Right resize grow width 10 px or 10 ppt
  111.  
  112. bindsym Return mode "default"
  113. bindsym Escape mode "default"
  114. }
  115.  
  116. # resize mode
  117. bindsym $mod+r mode "resize"
  118.  
  119. set $bg-color #2f343f
  120. set $inactive-bg-color #2f343f
  121. set $text-color #f3f4f5
  122. set $inactive-text-color #676E7D
  123. set $urgent-bg-color #E53935
  124.  
  125. # window colors
  126. # border background text indicator
  127. client.focused $bg-color $bg-color $text-color #00ff00
  128. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
  129. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
  130. client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00
  131.  
  132. # bar
  133. bar {
  134. status_command i3blocks -c /home/victorbuch/.config/i3/i3blocks.conf
  135. position top
  136. colors {
  137. background $bg-color
  138. separator #757575
  139. # border background text
  140. focused_workspace $bg-color $bg-color $text-color
  141. inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  142. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  143. }
  144. }
  145.  
  146. # default workspaces
  147. assign [class="Spotify"] $workspace10
  148. assign [class="Discord"] $workspace9
  149.  
  150. # workspace default monitors
  151. workspace $workspace1 output DVI-I-2
  152. workspace $workspace2 output DVI-I-2
  153. workspace $workspace3 output DVI-I-2
  154. workspace $workspace4 output DVI-I-2
  155. workspace $workspace5 output DVI-I-2
  156. workspace $workspace6 output DVI-I-2
  157. workspace $workspace9 output DVI-I-2
  158. workspace $workspace10 output DVI-I-2
  159.  
  160. # key-bindings
  161. #bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 2 +5% #increase sound volume
  162. #bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 2 -5% #decrease sound volume
  163. #bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 2 toggle # mute sound
  164. bindsym XF86AudioPlay exec playerctl play-pause
  165. bindsym XF86AudioPause exec playerctl play-pause
  166. bindsym XF86AudioNext exec playerctl next
  167. bindsym XF86AudioPrev exec playerctl previous
  168. bindsym $mod+Shift+f exec firefox
  169. bindsym $mod+Return exec i3-sensible-terminal
  170. bindsym $mod+Shift+q kill
  171. bindsym Print exec screenshot
  172. bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "System San Francisco Display 18"
  173.  
  174. # startup
  175. exec_always --no-startup-id feh --bg-scale /home/victorbuch/Billeder/Wallpapers/background-bench.jpg
  176. 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 1920x1080 --pos 0x0 --rotate normal --output DVI-I-2 --mode 1920x1080 --pos 1920x0 --rotate normal
  177. exec_always nm-applet
  178.  
  179. # Keys
  180. exec_always xmodmap -e "clear lock" #disable caps lock switch
  181. exec_always xmodmap -e "keysym Caps_Lock = Escape" #set caps_lock as escape
  182.  
  183. exec --no-startup-id compton -f
  184.  
  185. ## Volume control
  186.  
  187. # Path to volume control, without trailing slash
  188. set $volumepath ~/i3-volume
  189.  
  190. # Command for the status line (used with -t, requires -u)
  191. # ie: i3blocks, i3status
  192. set $statuscmd i3status
  193.  
  194. # Signal used to update the status line (used with -u, requires -t)
  195. # i3blocks uses SIGRTMIN+10 by default
  196. # i3status uses SIGUSR1 by default
  197. set $statussig SIGUSR1
  198.  
  199. # Amount to increase/decrease volume as a percentage (used with -i, -d)
  200. set $volumestep 5
  201.  
  202. # alsa-utils settings when not using pulseaudio-utils
  203. #
  204. # To configure a default card, see https://www.alsa-project.org/main/index.php/Asoundrc
  205. #
  206. # Card number to control. (used with -a and -c)
  207. # If not specified, i3-volume will let `amixer` use a default.
  208. # List cards: aplay -l
  209. #set $alsacard 1
  210.  
  211. # Uncomment to use alsa-utils (append "-c $alsacard" without quotes to override default card)
  212. #bindsym XF86AudioRaiseVolume exec $volumepath/volume -anp -i $volumestep -t $statuscmd -u $statussig
  213. #bindsym XF86AudioLowerVolume exec $volumepath/volume -anp -d $volumestep -t $statuscmd -u $statussig
  214. #bindsym XF86AudioMute exec $volumepath/volume -amn -t $statuscmd -u $statussig
  215.  
  216. # pulseaudio-utils settings when not using alsa-utils
  217. #
  218. # Symbolic name for sink (numeric index not supported) (used with -s $sinkname)
  219. # Recommended: comment out this setting and omit the -s option to use default sink
  220. # List sink names: pacmd list-sinks | awk -F "[<>]" '/^\s+name: <.*>/{print $2}'
  221. #set $sinkname alsa_output.pci-0000_00_1b.0.analog-stereo
  222.  
  223. # Using pulseaudio-utils (append "-s $sinkname" without quotes to override default sink)
  224. bindsym XF86AudioRaiseVolume exec $volumepath/volume -np -i $volumestep -t $statuscmd -u $statussig
  225. bindsym XF86AudioLowerVolume exec $volumepath/volume -np -d $volumestep -t $statuscmd -u $statussig
  226. bindsym XF86AudioMute exec $volumepath/volume -mn -t $statuscmd -u $statussig
  227.  
  228. # Brightness control
  229. bindsym $mod+F9 exec /home/victorbuch/.config/i3/bright_up
  230. bindsym $mod+F8 exec /home/victorbuch/config/i3/bright_down
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement