mosaid

Untitled

Feb 10th, 2020
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.60 KB | None | 0 0
  1.  
  2. set $mod Mod4
  3. set $altgr mod5
  4.  
  5. #i3-gaps
  6. #gaps inner 12
  7.  
  8. font pango:monospace 12
  9.  
  10. # Use Mouse+$mod to drag floating windows to their wanted position
  11. floating_modifier $mod
  12.  
  13. # start a terminal
  14. #bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
  15. bindsym $mod+Return exec --no-startup-id lxterminal
  16. bindsym $mod+t exec --no-startup-id lxterminal
  17. bindsym mod1+s exec --no-startup-id xterm
  18.  
  19.  
  20.  
  21.  
  22. # kill focused window
  23. bindsym mod1+x kill
  24. bindsym button3 floating toggle
  25.  
  26. # start rofi (a program launcher)
  27. bindsym $mod+x exec --no-startup-id "rofi -show combi "
  28. bindsym $mod+c exec --no-startup-id ~/.i3/mylocate.sh
  29. bindsym $mod+mod1+x exec --no-startup-id "i3-dmenu-desktop --dmenu='dmenu -b -i -l 49 -fn monospace:20 -p run'"
  30.  
  31. # change focus
  32. #bindsym $mod+j focus left
  33. #bindsym $mod+k focus down
  34. #bindsym $mod+l focus up
  35. #bindsym $mod+m focus right
  36.  
  37. # alternatively, you can use the cursor keys:
  38. bindsym $mod+Left focus left
  39. bindsym $mod+Down focus down
  40. bindsym $mod+Up focus up
  41. bindsym $mod+Right focus right
  42.  
  43. # # move focused window
  44. # bindsym $mod+Shift+j move left
  45. # bindsym $mod+Shift+k move down
  46. # bindsym $mod+Shift+l move up
  47. # bindsym $mod+Shift+M move right
  48.  
  49. # alternatively, you can use the cursor keys:
  50. bindsym $mod+Shift+Left move left
  51. bindsym $mod+Shift+Down move down
  52. bindsym $mod+Shift+Up move up
  53. bindsym $mod+Shift+Right move right
  54.  
  55. # split in horizontal orientation
  56. bindsym $mod+h split h
  57.  
  58. # split in vertical orientation
  59. bindsym $mod+v split v
  60.  
  61. # enter fullscreen mode for the focused container
  62. bindsym $mod+f fullscreen toggle
  63.  
  64. # Make the currently focused window a scratchpad
  65. bindsym $mod+s move scratchpad
  66. # Show the first scratchpad window
  67. bindsym $mod+q scratchpad show
  68. # change container layout (stacked, tabbed, toggle split)
  69. bindsym $mod+a layout stacking
  70. bindsym $mod+z layout tabbed
  71. bindsym $mod+e layout toggle split
  72.  
  73. # toggle tiling / floating
  74. bindsym $mod+Shift+space floating toggle
  75.  
  76. # change focus between tiling / floating windows
  77. bindsym $mod+space focus mode_toggle
  78.  
  79. # focus the parent container
  80. #bindsym $mod+q focus parent
  81.  
  82. # focus the child container
  83. #bindsym $mod+d focus child
  84.  
  85. # Define names for default workspaces for which we configure key bindings later on.
  86. # We use variables to avoid repeating the names in multiple places.
  87. set $ws1 "1: root"
  88. set $ws2 "2: net"
  89. set $ws3 "3: Media"
  90. set $ws4 "4: Files"
  91. set $ws5 "5: Work"
  92. set $ws6 "6: Docs"
  93. set $ws7 "7"
  94. set $ws8 "8"
  95. set $ws9 "9"
  96. set $ws10 "10"
  97. set $ws11 "11"
  98. set $ws12 "12"
  99. set $ws13 "13"
  100.  
  101. # switch to workspace
  102. bindsym $mod+ampersand workspace $ws1
  103. bindsym $mod+eacute workspace $ws2
  104. bindsym $mod+quotedbl workspace $ws3
  105. bindsym $mod+apostrophe workspace $ws4
  106. bindsym $mod+parenleft workspace $ws5
  107. bindsym $mod+minus workspace $ws6
  108. bindsym $mod+egrave workspace $ws7
  109. bindsym $mod+underscore workspace $ws8
  110. bindsym $mod+ccedilla workspace $ws9
  111. bindsym $mod+agrave workspace $ws10
  112. bindsym $mod+parenright workspace $ws11
  113. bindsym $mod+equal workspace $ws12
  114. bindsym $mod+control+twosuperior workspace $ws13
  115.  
  116. # switch to workspace
  117. bindsym $mod+control+ampersand workspace "14"
  118. bindsym $mod+control+eacute workspace "15"
  119. bindsym $mod+control+quotedbl workspace "16"
  120. bindsym $mod+control+apostrophe workspace "17"
  121. bindsym $mod+control+parenleft workspace "18"
  122. bindsym $mod+control+minus workspace "19"
  123. bindsym $mod+control+egrave workspace "20"
  124. bindsym $mod+control+underscore workspace "21"
  125. bindsym $mod+control+ccedilla workspace "22"
  126. bindsym $mod+control+agrave workspace "23"
  127. bindsym $mod+control+parenright workspace "24"
  128. bindsym $mod+control+equal workspace "25"
  129. bindsym $mod+control+mod1+colon workspace "0"
  130.  
  131. # move focused container to workspace
  132. bindsym $mod+Shift+ampersand move container to workspace $ws1
  133. bindsym $mod+Shift+eacute move container to workspace $ws2
  134. bindsym $mod+Shift+quotedbl move container to workspace $ws3
  135. bindsym $mod+Shift+apostrophe move container to workspace $ws4
  136. bindsym $mod+Shift+parenleft move container to workspace $ws5
  137. bindsym $mod+Shift+minus move container to workspace $ws6
  138. bindsym $mod+Shift+egrave move container to workspace $ws7
  139. bindsym $mod+Shift+underscore move container to workspace $ws8
  140. bindsym $mod+Shift+ccedilla move container to workspace $ws9
  141. bindsym $mod+Shift+agrave move container to workspace $ws10
  142. bindsym $mod+Shift+parenright move container to workspace $ws11
  143. bindsym $mod+Shift+equal move container to workspace $ws12
  144. bindsym $mod+Shift+twosuperior move container to workspace $ws13
  145.  
  146. # move focused container to workspace
  147. bindsym $mod+control+Shift+ampersand move container to workspace "14"
  148. bindsym $mod+control+Shift+eacute move container to workspace "15"
  149. bindsym $mod+control+Shift+quotedbl move container to workspace "16"
  150. bindsym $mod+control+Shift+apostrophe move container to workspace "17"
  151. bindsym $mod+control+Shift+parenleft move container to workspace "18"
  152. bindsym $mod+control+Shift+minus move container to workspace "19"
  153. bindsym $mod+control+Shift+egrave move container to workspace "20"
  154. bindsym $mod+control+Shift+underscore move container to workspace "21"
  155. bindsym $mod+control+Shift+ccedilla move container to workspace "22"
  156. bindsym $mod+control+Shift+agrave move container to workspace "23"
  157. bindsym $mod+control+Shift+parenright move container to workspace "24"
  158. bindsym $mod+control+Shift+equal move container to workspace "25"
  159.  
  160. bindsym $mod+w exec --no-startup-id ~/.i3/move_to_ws.sh
  161. bindsym $mod+shift+w exec --no-startup-id ~/.i3/move_to_ws.sh move
  162.  
  163. # dual monitor settings
  164. #exec_always --no-startup-id xrandr --output HDMI-1 --right-of eDP-1
  165. set $firstmonitor eDP1
  166. set $secondmonitor HDMI1
  167.  
  168. workspace $ws1 output $firstmonitor
  169. workspace $ws2 output $firstmonitor
  170. workspace $ws3 output $secondmonitor
  171. workspace $ws4 output $firstmonitor
  172. workspace $ws5 output $firstmonitor
  173. workspace $ws6 output $firstmonitor
  174. workspace $ws8 output $firstmonitor
  175. workspace $ws9 output $firstmonitor
  176.  
  177. assign [class="Transmission-gtk"] $ws1
  178. assign [class="Navigator|firefox"] $ws2
  179. assign [class="libreoffice-calc|libreoffice-writer"] $ws5
  180. assign [class="Chromium"] $ws5
  181. assign [class="Tor Browser"] $ws7
  182. assign [class="VirtualBox Manager"] $ws7
  183. assign [class="sqlitebrowser|DB Browser for SQLite"] $ws6
  184. assign [class="Evince|Org.gnome.gedit"] $ws6
  185. assign [class="VirtualBox Machine|VirtualBox Machine"] $ws6
  186. assign [class="obs|explorer.exe|Wine|huniepop.exe|joey_pc.exe"] $ws11
  187. assign [class="openshot|QtCreator|TeXstudio"] $ws11
  188. #
  189. #
  190. #some window parameters
  191. for_window [class="mpv|Tor Browser|Transmission-gtk|vlc|Pavucontrol"] floating enable border normal
  192. for_window [class="Gnome-system-monitor|smplayer|Gnome-calculator"] floating enable border normal
  193. for_window [class="Pidgin|Woeusbgui|Wicd-client.py"] floating enable border normal
  194. for_window [class="VirtualBox Manager|florence|Florence"] floating enable border normal
  195. for_window [class="TelegramDesktop|Qalculate-gtk"] floating enable border normal
  196. for_window [class="feh"] floating enable move absolute position 0px 0px
  197. for_window [class="Lxterminal|lxterminal"] resize set 1200 700
  198. for_window [class="Xfce4-terminal"] floating enable border normal
  199. for_window [class="Xfce4-terminal"] resize set 1600 700
  200. for_window [class="Xfce4-terminal"] move absolute position 200 100
  201. #for_window [class="VirtualBox Machine"] floating enable, resize set 1601 900, move position 0 0
  202. #
  203.  
  204. #new_window normal
  205. #set $background #e0eaf9
  206. #
  207. ## class border backgr. text indicator child_border
  208. #client.focused #271f17 #271f17 #AAAAAA #AAAAAA #C93F2C
  209. #client.focused_inactive #21211d #1d2121 #a1a1a1 #484e50 #1d2121
  210. #client.unfocused #333333 #222222 #888888 #292d2e #222222
  211. #client.urgent #4a4b4c #4a4b4c #AAAAAA #AAAAAA #4a4c4b
  212. #client.placeholder #000000 #0c0c0c #AAAAAA #000000 #0c0c0c
  213. #
  214. #client.background #111111
  215.  
  216. # reload the configuration file
  217. bindsym $mod+Shift+c reload
  218. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  219. bindsym $mod+Shift+r restart
  220. # exit i3 (logs you out of your X session)
  221. bindsym $mod+Shift+e exec --no-startup-id "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'"
  222. bindsym $mod+control+Escape exec --no-startup-id 'i3-msg exit'
  223.  
  224. # resize window (you can also use the mouse for that)
  225. mode "resize" {
  226. # These bindings trigger as soon as you enter the resize mode
  227.  
  228. # Pressing left will shrink the window’s width.
  229. # Pressing right will grow the window’s width.
  230. # Pressing up will shrink the window’s height.
  231. # Pressing down will grow the window’s height.
  232. bindsym j resize shrink width 10 px or 10 ppt
  233. bindsym k resize grow height 10 px or 10 ppt
  234. bindsym l resize shrink height 10 px or 10 ppt
  235. bindsym m resize grow width 10 px or 10 ppt
  236.  
  237. # same bindings, but for the arrow keys
  238. bindsym Left resize shrink width 10 px or 10 ppt
  239. bindsym Down resize shrink height 10 px or 10 ppt
  240. bindsym Up resize grow height 10 px or 10 ppt
  241. bindsym Right resize grow width 10 px or 10 ppt
  242.  
  243. # back to normal: Enter or Escape or $mod+r
  244. bindsym Return mode "default"
  245. bindsym Escape mode "default"
  246. bindsym $mod+r mode "default"
  247. }
  248.  
  249. bindsym $mod+r mode "resize"
  250.  
  251.  
  252. # Start i3bar to display a workspace bar (plus the system information i3status
  253. # finds out, if available)
  254.  
  255. #Polybar to replace the default i3statusbar:
  256. #exec_always --no-startup-id $HOME/.config/polybar/launch.sh boot
  257.  
  258. bar {
  259. colors {
  260. background #000000
  261. # statusline #00A5FF #that neon blue
  262. separator #000000
  263. focused_workspace #4c7899 #285577 #ffffff
  264. active_workspace #333333 #5f676a #ffffff
  265. inactive_workspace #333333 #222222 #888888
  266. urgent_workspace #2f343a #900000 #ffffff
  267. }
  268. font pango:FontAwesome Bold 14
  269. #tray_output none
  270. status_command i3blocks -c ~/.i3/top-bar/i3blocks.conf
  271. position top
  272. #bindsym --release button3 exec --no-startup-id scrot '%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/Pictures/' && mplayer ~/.i3/Nikon.ogg
  273. }
  274.  
  275. #bar {
  276. # font pango:FontAwesome Bold 20
  277. # status_command i3blocks -c ~/.i3/bottom-bar/i3blocks.conf
  278. # position bottom
  279. # modifier Mod4
  280. # mode hide
  281. # hidden_state hide
  282. # workspace_buttons no
  283. #}
  284.  
  285. # Pulse Audio controls
  286. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 2%+
  287. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 2%-
  288. bindsym XF86AudioMute exec --no-startup-id --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  289.  
  290. # Screen brightness controls
  291. #bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 20 # increase screen brightness
  292. #bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 20 # decrease screen brightness
  293. bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5 # increase screen brightness
  294. bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5 # decrease screen brightness
  295.  
  296. # Touchpad controls
  297. #bindsym XF86TouchpadToggle exec --no-startup-id /some/path/toggletouchpad.sh # toggle touchpad
  298. #bindsym XF86TouchpadToggle exec --no-startup-id vlc
  299.  
  300. # Media player controls
  301. bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  302. bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
  303. bindsym XF86AudioNext exec --no-startup-id playerctl next
  304. bindsym XF86AudioPrev exec --no-startup-id playerctl previous
  305.  
  306. #screenshots
  307. bindsym Print exec --no-startup-id ~/.i3/screenshot.sh 1
  308. bindsym mod1+control+p exec --no-startup-id ~/.i3/screenshot.sh 1
  309. bindsym mod1+control+o exec --no-startup-id ~/.i3/screenshot.sh 2
  310.  
  311. #other keyboard shortcuts
  312. bindsym $mod+l exec --no-startup-id betterlockscreen --lock
  313. bindsym $mod+n exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts2/playFromClipboard.sh npr
  314. #bindsym $mod+m exec --no-startup-id ~/.i3/user.sh menu
  315. bindsym mod1+space exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts0/media-controls.sh pp
  316. bindsym control+mod1+space exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts0/media-controls.sh m
  317. bindsym mod1+n exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts0/media-controls.sh n
  318. bindsym mod1+b exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts0/media-controls.sh p
  319. bindsym mod1+v exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts0/media-controls.sh v
  320. bindsym mod1+c exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts0/media-controls.sh vv
  321. bindsym mod1+r exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts0/media-controls.sh r
  322. bindsym mod1+w exec --no-startup-id ~/.i3/pplay/play.sh
  323. #bindsym mod1+f exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts1/conkyfont.sh
  324. bindsym mod1+d exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts2/myBash_functions.sh eglllr
  325. bindsym mod1+t exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts2/myBash_functions.sh ttor
  326. bindsym control+less exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts2/ws.sh ++
  327. bindsym control+shift+less exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts2/ws.sh --
  328.  
  329. #startup
  330. #exec --no-startup-id wicd-gtk -t
  331. #exec --no-startup-id google-drive-ocamlfuse ~/gDrive
  332. #exec --no-startup-id firefox
  333. #exec --no-startup-id pidgin
  334. exec --no-startup-id mpd /home/mosaid/.mpd/dir1/mpd.conf
  335. exec --no-startup-id mpd /home/mosaid/.mpd/dir2/mpd.conf
  336. exec --no-startup-id /usr/lib/geoclue-2.0/demos/agent
  337. exec --no-startup-id nm-applet
  338. exec --no-startup-id transmission-gtk -m
  339. exec --no-startup-id udiskie
  340. exec --no-startup-id ~/.i3/start-conky.sh
  341. exec --no-startup-id ~/.i3/prayerTime.sh
  342. exec --no-startup-id ~/.i3/pplay/pplayEngine.sh
  343. #exec --no-startup-id ~/.i3/wchanger/wchanger-engine.sh
  344. exec --no-startup-id ~/.i3/onedriveMonitor.sh
  345. exec --no-startup-id redshift
  346. exec_always --no-startup-id numlockx on
  347. exec_always --no-startup-id picom --config ~/.i3/picom.conf
  348. exec_always --no-startup-id xkb-switch --i3
  349.  
  350. set $mode_display Mirrored (c) , Ext Screen (v) , HDMI ON (b) , HDMI OFF (n)
  351. mode "$mode_display" {
  352. bindsym c exec --no-startup-id ~/.i3/display.sh mirrored , mode "default"
  353. bindsym v exec --no-startup-id ~/.i3/display.sh extended , mode "default"
  354. bindsym b exec --no-startup-id ~/.i3/display.sh mirrored , mode "default"
  355. bindsym n exec --no-startup-id ~/.i3/display.sh default , mode "default"
  356.  
  357. bindsym Return mode "default"
  358. bindsym Escape mode "default"
  359. }
  360. #
  361. bindsym $mod+d mode "$mode_display"
  362. #bindsym $mod+d exec --no-startup-id ~/.i3/display.sh
  363. #bindsym XF86Display exec --no-startup-id ~/.i3/display.sh
  364.  
  365. # multitouch gestures
  366. bindsym --whole-window $mod+button10 workspace prev_on_output
  367. bindsym --whole-window $mod+button11 workspace next_on_output
  368.  
  369. #keyboard layout
  370. exec_always --no-startup-id "setxkbmap -model pc104 -layout fr,ar -variant ,, -option grp:alt_shift_toggle"
  371. #bindsym --release Caps_Lock exec --no-startup-id pkill -SIGRTMIN+11 i3blocks
  372. #bindsym --release Num_Lock exec --no-startup-id pkill -SIGRTMIN+11 i3blocks
  373.  
  374. #switch to greeter and login
  375. #bindsym $mod+twosuperior exec dm-tool switch-to-greeter
  376.  
  377.  
  378. set $playFromClipboard play From ClipBoard (c), play next youtube video (v)
  379. mode "$playFromClipboard" {
  380.  
  381. bindsym c exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts2/playFromClipboard.sh
  382. bindsym v exec --no-startup-id ~/OneDrive/OneDrive/linux/scripts2/playFromClipboard.sh n
  383.  
  384. bindsym Escape mode "default"
  385. }
  386.  
  387. bindsym mod1+p mode "$playFromClipboard"
  388.  
  389. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  390. mode "$mode_system" {
  391. bindsym l exec --no-startup-id i3exit.sh lock, mode "default"
  392. bindsym e exec --no-startup-id i3exit.sh logout, mode "default"
  393. bindsym s exec --no-startup-id i3exit.sh suspend, mode "default"
  394. bindsym h exec --no-startup-id i3exit.sh hibernate, mode "default"
  395. bindsym r exec --no-startup-id i3exit.sh reboot, mode "default"
  396. bindsym Shift+s exec --no-startup-id i3exit.sh shutdown, mode "default"
  397.  
  398. # back to normal: Enter or Escape
  399. bindsym Return mode "default"
  400. bindsym Escape mode "default"
  401. }
  402. bindsym $mod+Shift+q mode "$mode_system"
  403.  
  404. #wallpaper changer keys
  405. bindsym mod1+f exec --no-startup-id ~/.config/wchanger/wchanger.sh freeze
  406. bindsym mod1+g exec --no-startup-id ~/.config/wchanger/wchanger.sh p
  407. bindsym mod1+h exec --no-startup-id ~/.config/wchanger/wchanger.sh dir
  408. bindsym mod1+j exec --no-startup-id ~/.config/wchanger/wchanger.sh fav
  409. bindsym mod1+k exec --no-startup-id ~/.config/wchanger/wchanger.sh sdd
  410. bindsym mod1+l exec --no-startup-id ~/.config/wchanger/wchanger.sh stt
  411. bindsym mod1+m exec --no-startup-id ~/.config/wchanger/wchanger.sh u
  412. bindsym mod1+comma exec --no-startup-id ~/.config/wchanger/wchanger.sh -
  413. bindsym mod1+semicolon exec --no-startup-id ~/.config/wchanger/wchanger.sh +
  414. bindsym mod1+colon exec --no-startup-id ~/.config/wchanger/wchanger.sh fix
  415. bindsym mod1+exclam exec --no-startup-id ~/.config/wchanger/wchanger.sh list
  416. bindsym $mod+mod1+exclam exec --no-startup-id ~/.config/wchanger/wchanger.sh list o
  417. bindsym mod1+ugrave exec --no-startup-id ~/.config/wchanger/wchanger.sh af
  418. bindsym mod1+asterisk exec --no-startup-id ~/.config/wchanger/wchanger.sh rf
  419. bindsym mod1+dead_circumflex exec --no-startup-id ~/.config/wchanger/wchanger.sh setmode
  420. bindsym mod1+dollar exec --no-startup-id ~/.config/wchanger/wchanger.sh x
Add Comment
Please, Sign In to add comment