Advertisement
Haron_Prime

config

Dec 22nd, 2016
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.95 KB | None | 0 0
  1. set $mod Mod4
  2. set $left h
  3. set $down j
  4. set $up k
  5. set $right l
  6. set $term urxvtc
  7. set $menu dmenu_run_history -i -p 'Run:' -sb '#333' -nf '#999' -sf '#9df' -fn 'Terminus Re33:size=12'
  8.  
  9. # show_marks no
  10. new_window pixel 1
  11. new_float pixel 1
  12. # focus_on_window_activation focus
  13. # popup_during_fullscreen smart
  14.  
  15. # Font
  16. font pango:SonyEricssonLogo 10
  17.  
  18. # Colors
  19. # class                 border  backgr. text    indicator
  20. client.focused          #99ddff #353535 #bbbbbb #959595
  21. client.focused_inactive #333333 #5f676a #bbbbbb #484e50
  22. client.unfocused        #333333 #222222 #888888 #292d2e
  23. client.urgent           #2f343a #900000 #bbbbbb #900000
  24.  
  25. ### Key bindings
  26. #
  27. # Basics:
  28. #
  29.     # start a terminal
  30.     bindsym $mod+Return exec $term
  31.  
  32.     # kill focused window
  33.     bindsym $mod+Shift+q kill
  34.  
  35.     # start your launcher
  36.     bindsym $mod+d exec $menu
  37.  
  38.     # Drag floating windows by holding down $mod and left mouse button.
  39.     # Resize them with right mouse button + $mod.
  40.     # Despite the name, also works for non-floating windows.
  41.     # Change normal to inverse to use left mouse button for resizing and right
  42.     # mouse button for dragging.
  43.     floating_modifier $mod normal
  44.  
  45.     # reload the configuration file
  46.     bindsym $mod+Shift+c reload
  47.  
  48.     # exit sway (logs you out of your wayland session)
  49.     bindsym $mod+Shift+e exit
  50. #
  51. # Moving around:
  52. #
  53.     # Move your focus around
  54.     bindsym $mod+$left focus left
  55.     bindsym $mod+$down focus down
  56.     bindsym $mod+$up focus up
  57.     bindsym $mod+$right focus right
  58.     # or use $mod+[up|down|left|right]
  59.     bindsym $mod+Left focus left
  60.     bindsym $mod+Down focus down
  61.     bindsym $mod+Up focus up
  62.     bindsym $mod+Right focus right
  63.  
  64.     # _move_ the focused window with the same, but add Shift
  65.     bindsym $mod+Shift+$left move left
  66.     bindsym $mod+Shift+$down move down
  67.     bindsym $mod+Shift+$up move up
  68.     bindsym $mod+Shift+$right move right
  69.     # ditto, with arrow keys
  70.     bindsym $mod+Shift+Left move left
  71.     bindsym $mod+Shift+Down move down
  72.     bindsym $mod+Shift+Up move up
  73.     bindsym $mod+Shift+Right move right
  74. #
  75. # Workspaces:
  76. #
  77. # switch to workspace
  78. bindsym $mod+1 workspace 1:W
  79. bindsym $mod+2 workspace 2:M
  80. bindsym $mod+3 workspace 3:E
  81. bindsym $mod+4 workspace 4:F
  82. bindsym $mod+5 workspace 5:S
  83. bindsym $mod+6 workspace 6:V
  84. bindsym $mod+7 workspace 7:P
  85. bindsym $mod+8 workspace 8:J
  86. bindsym $mod+9 workspace 9:T
  87. bindsym $mod+0 workspace 0:IM
  88.  
  89. # move focused container to workspace
  90. bindsym $mod+Shift+1 move container to workspace 1:W
  91. bindsym $mod+Shift+2 move container to workspace 2:M
  92. bindsym $mod+Shift+3 move container to workspace 3:E
  93. bindsym $mod+Shift+4 move container to workspace 4:F
  94. bindsym $mod+Shift+5 move container to workspace 5:S
  95. bindsym $mod+Shift+6 move container to workspace 6:V
  96. bindsym $mod+Shift+7 move container to workspace 7:P
  97. bindsym $mod+Shift+8 move container to workspace 8:J
  98. bindsym $mod+Shift+9 move container to workspace 9:T
  99. bindsym $mod+Shift+0 move container to workspace 0:IM
  100.  
  101. bindsym $mod+x [urgent=latest] focus
  102.  
  103. # Layout stuff:
  104. #
  105.     # You can "split" the current object of your focus with
  106.     # $mod+b or $mod+v, for horizontal and vertical splits
  107.     # respectively.
  108.     bindsym $mod+b splith
  109.     bindsym $mod+v splitv
  110.  
  111.     # Switch the current container between different layout styles
  112.     bindsym $mod+s layout stacking
  113.     bindsym $mod+w layout tabbed
  114.     bindsym $mod+e layout toggle split
  115.  
  116.     # Make the current focus fullscreen
  117.     bindsym $mod+f fullscreen
  118.  
  119.     # Toggle the current focus between tiling and floating mode
  120.     bindsym $mod+Shift+space floating toggle
  121.  
  122.     # Swap focus between the tiling area and the floating area
  123.     bindsym $mod+space focus mode_toggle
  124.  
  125.     # move focus to the parent container
  126.     bindsym $mod+a focus parent
  127. #
  128. # Scratchpad:
  129. #
  130.     bindsym $mod+Shift+minus move scratchpad
  131.     bindsym Shift+F12 move scratchpad
  132.     bindsym $mod+minus scratchpad show
  133.     bindsym F12 scratchpad show
  134. #
  135. # Resizing containers:
  136. #
  137. mode "resize" {
  138.     # left will shrink the containers width
  139.     # right will grow the containers width
  140.     # up will shrink the containers height
  141.     # down will grow the containers height
  142.     bindsym $left resize shrink width 10 px or 10 ppt
  143.     bindsym $down resize grow height 10 px or 10 ppt
  144.     bindsym $up resize shrink height 10 px or 10 ppt
  145.     bindsym $right resize grow width 10 px or 10 ppt
  146.  
  147.     # ditto, with arrow keys
  148.     bindsym Left resize shrink width 10 px or 10 ppt
  149.     bindsym Down resize grow height 10 px or 10 ppt
  150.     bindsym Up resize shrink height 10 px or 10 ppt
  151.     bindsym Right resize grow width 10 px or 10 ppt
  152.  
  153.     # return to default mode
  154.     bindsym Return mode "default"
  155.     bindsym Escape mode "default"
  156. }
  157. bindsym $mod+r mode "resize"
  158.  
  159. bar {
  160.     status_command    i3blocks -c ~/.i3/i3blocks.conf
  161.     position          top
  162.     strip_workspace_numbers yes
  163.     # binding_mode_indicator yes
  164.     workspace_buttons yes
  165.     font pango:Terminus Re33 12
  166.     colors {
  167.         background #252525
  168.         # statusline #bbbbbb
  169.  
  170.         focused_workspace  #757575 #454545 #aaddff
  171.         urgent_workspace   #2f343a #900000 #ffffff
  172.         # binding_mode       #2f343a #900000 #ffffff
  173.     }
  174. }
  175.  
  176. bindsym $mod+Escape          workspace back_and_forth
  177.  
  178. bindsym Cancel               exec --no-startup-id compdown
  179. bindsym XF86Reload           exec --no-startup-id compreboot
  180. bindsym XF86Search           exec --no-startup-id urxvtc -name htop -e htop
  181. bindsym XF86Tools            exec --no-startup-id urxvtc -name ncmpcpp -e ncmpcpp
  182. bindsym XF86AudioMute        exec --no-startup-id pulseaudio-ctl mute
  183. bindsym XF86AudioLowerVolume exec --no-startup-id pulseaudio-ctl down
  184. bindsym XF86AudioRaiseVolume exec --no-startup-id pulseaudio-ctl up
  185. bindsym XF86AudioPlay        exec --no-startup-id mpc toggle
  186. bindsym $mod+0x60            exec --no-startup-id mpc toggle
  187. bindsym XF86AudioStop        exec --no-startup-id mpc stop
  188. bindsym XF86AudioPrev        exec --no-startup-id mpc prev
  189. bindsym XF86AudioNext        exec --no-startup-id mpc next
  190. bindsym XF86Favorites        exec --no-startup-id transgui
  191. bindsym XF86HomePage         exec --no-startup-id vivaldi-snapshot
  192. bindsym XF86Mail             exec --no-startup-id /usr/bin/thunderbird
  193. bindsym XF86Explorer         exec --no-startup-id pcmanfm
  194. bindsym XF86Calculator       exec --no-startup-id galculator
  195. bindsym XF86Sleep            exec --no-startup-id i3lock
  196. bindsym Menu                 exec --no-startup-id gmrun
  197.  
  198. bindsym Mod1+F2              exec --no-startup-id dmenu_run_history -i -p 'Run:' -sb '#333' -nf '#999' -sf '#9df' -fn 'Terminus Re33:size=12'
  199. bindsym Print                exec --no-startup-id swaygrab
  200. bindsym Mod1+g               exec --no-startup-id gimp
  201. bindsym Mod1+l               exec --no-startup-id cat /home/haron/Documents/last.pass | cut -c 1-24 | xclip -selection clipboard
  202. bindsym Mod1+m               exec --no-startup-id urxvtc -name mc -e mc
  203. bindsym Mod1+v               exec --no-startup-id urxvtc -name xvim -e vim
  204. bindsym Mod1+r               exec --no-startup-id urxvtc -name ranger -e ranger
  205. bindsym Mod1+p               exec --no-startup-id wine '/home/haron/lib/Pro100-5.20-GIV/PRO100.exe'
  206. bindsym Mod1+s               exec --no-startup-id subl3
  207. bindsym Mod1+t               exec --no-startup-id telegram-desktop
  208. bindsym Mod1+w               exec --no-startup-id pacmanxg
  209. bindsym Mod1+f               exec --no-startup-id firefox
  210. bindsym Mod1+e               exec --no-startup-id pavucontrol
  211. bindsym Mod1+i               exec --no-startup-id 2D-Place
  212. bindsym Mod1+h               exec --no-startup-id hexchat
  213.  
  214. assign [class="crx_mpognobbkildjkofajifpdfhcokliml"] 1:W
  215. assign [class="Navigator"] 1:W
  216.  
  217. assign [class="Mail"] 2:M
  218.  
  219. assign [class="subl3"] 3:E
  220.  
  221. assign [class="pcmanfm"] 4:F
  222.  
  223. assign [class="pacmanxg"] 5:S
  224.  
  225. assign [class="mpv"] 6:V
  226. assign [class="vlc"] 6:V
  227. assign [class="sopcast-player.py"] 6:V
  228.  
  229. assign [class="mirage"] 7:P
  230. assign [class="gimp"] 7:P
  231.  
  232. assign [class="PRO100.exe"] 8:J
  233.  
  234. assign [class="transgui"] 9:T
  235.  
  236. assign [class="telegram-desktop"] 0:IM
  237. assign [class="hexchat"] 0:IM
  238.  
  239. for_window [window_role="^conversation$"] floating enable
  240. for_window [window_role="task_dialog"] floating enable
  241. for_window [window_role="messages"] floating enable
  242. for_window [window_role="pop-up"] floating enable
  243.  
  244. for_window [id="zenity"] floating enable
  245. for_window [id="galculator"] floating enable
  246. for_window [id="pavucontrol"] floating enable
  247. for_window [id="xarchiver"] floating enable
  248.  
  249. for_window [title="Gsmartcontrol"] floating enable
  250. for_window [title="Gis-weather"] floating enable
  251. for_window [title="Shutter"] floating enable
  252.  
  253. for_window [class="gmrun"] floating enable
  254. for_window [class="feh"] floating enable
  255. for_window [class="lxappearance"] floating enable
  256. for_window [class="xarchiver"] floating enable
  257.  
  258. for_window [title="ncmpcpp"] move scratchpad
  259. for_window [title="htop"] move scratchpad
  260. for_window [title="ranger"] move scratchpad
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement