Guest User

Untitled

a guest
Nov 7th, 2022
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.35 KB | None | 0 0
  1. ############## MY EDITS #################################################
  2. #suspend system & lock
  3. bindsym $mod+n exec betterlockscreen --lock blur; exec --no-startup-id systemctl suspend
  4. #lock
  5. #bindsym $mod+m exec --no-startup-id i3lock -c 000000
  6. bindsym $mod+m exec --no-startup-id betterlockscreen --lock blur & sleep 5 && xset dpms force off
  7.  
  8. ## xinput for touchpad
  9. exec --no-startup-id xinput --set-prop 17 339 1
  10. ##
  11.  
  12. ##set displays for work
  13. exec --no-startup-id xrandr --output eDP-1 --auto --output DP-1-1 --auto --left-of eDP-1 --output DP-1-3 --crtc 2 --mode 1920x1080 --pos 1366x0 --rotate normal --right-of DP-1-1
  14. #exec --no-startup-id xrandr --output eDP-1 --auto --output DP-1-1 --auto --left-of eDP-1 --output DP-1-3 --crtc 2 --mode 1920x1080 --pos 1366x0 --rotate normal --left-of DP-1-1
  15. #exec --no-startup-id xrandr --output eDP-1 --auto --output DP-1-1 --auto --left-of eDP-1 --output DP-1-3 --crtc 2 --mode 1920x1080 --pos 1366x0 --rotate normal --same-as eDP-1
  16. #exec --no-startup-id xrandr --output DP-1-3 --crtc 2 --mode 1920x1080 --pos 1366x0 --rotate normal --right-of DP-1-1 --output eDP-1 --same-as DP-1-3
  17. workspace 1 output DP-1-1
  18. workspace 2 output DP-1-1
  19. workspace 3 output DP-1-1
  20. workspace 4 output DP-1-1
  21. workspace 5 output DP-1-1
  22. workspace 9 output eDP-1
  23. workspace 10 output eDP-1
  24.  
  25. #start audio applet
  26. #exec --no-startup-id pasystray
  27.  
  28. #get rid of title bar and window decorations
  29. for_window [class="^.*"] border pixel 0
  30. new_window 1pixel
  31.  
  32. ###MOVE WORKSPACES THEMSELVES
  33. bindsym $mod+Ctrl+greater move workspace to output right
  34. bindsym $mod+Ctrl+less move workspace to output left
  35. ###
  36.  
  37. ##start onedrive client and have it watch for changes and sync##
  38. exec --no-startup-id onedrive -m
  39. ##
  40.  
  41.  
  42. ##flameshot##
  43. exec --no-startup-id flameshot
  44. bindsym Print exec "flameshot gui"
  45. ##
  46.  
  47. ##SET screen blank for an hour:
  48. exec --no-startup-id xset s 3600 3600
  49.  
  50.  
  51. #Run background animated
  52. exec --no-startup-id ~/Pictures/wallpapers/animated-background/scripts/loop_pngs.sh /home/alex/Pictures/wallpapers/animated-background/scripts/falling-leaves/
  53.  
  54. #turn on picom for transparency
  55. exec_always --no-startup-id picom --xrender-sync --xrender-sync-fence
  56.  
  57. ##############END MY EDITS################################################
  58.  
  59. set $mod Mod4
  60.  
  61. # Font for window titles. Will also be used by the bar unless a different font
  62. # is used in the bar {} block below.
  63. font pango:monospace 8
  64.  
  65.  
  66. # Start XDG autostart .desktop files using dex. See also
  67. # https://wiki.archlinux.org/index.php/XDG_Autostart
  68. exec --no-startup-id dex --autostart --environment i3
  69.  
  70.  
  71. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  72. # screen before suspend. Use loginctl lock-session to lock your screen.
  73. exec --no-startup-id xss-lock --transfer-sleep-lock -- betterlockscreen --nofork
  74.  
  75. # NetworkManager is the most popular way to manage wireless networks on Linux,
  76. # and nm-applet is a desktop environment-independent system tray GUI for it.
  77. exec --no-startup-id nm-applet
  78.  
  79. # Use pactl to adjust volume in PulseAudio.
  80. set $refresh_i3status killall -SIGUSR1 i3status
  81. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  82. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  83. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  84. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  85.  
  86. # Use Mouse+$mod to drag floating windows to their wanted position
  87. floating_modifier $mod
  88.  
  89. # start a terminal
  90. bindsym $mod+Return exec i3-sensible-terminal
  91.  
  92. # kill focused window
  93. bindsym $mod+Shift+q kill
  94.  
  95.  
  96. # A more modern dmenu replacement is rofi:
  97. bindsym $mod+d exec "rofi -modi drun,run -show drun"
  98.  
  99.  
  100. # change focus
  101. bindsym $mod+j focus left
  102. bindsym $mod+k focus down
  103. bindsym $mod+l focus up
  104. bindsym $mod+semicolon focus right
  105.  
  106. # alternatively, you can use the cursor keys:
  107. bindsym $mod+Left focus left
  108. bindsym $mod+Down focus down
  109. bindsym $mod+Up focus up
  110. bindsym $mod+Right focus right
  111.  
  112. # move focused window
  113. bindsym $mod+Shift+j move left
  114. bindsym $mod+Shift+k move down
  115. bindsym $mod+Shift+l move up
  116. bindsym $mod+Shift+semicolon move right
  117.  
  118. # alternatively, you can use the cursor keys:
  119. bindsym $mod+Shift+Left move left
  120. bindsym $mod+Shift+Down move down
  121. bindsym $mod+Shift+Up move up
  122. bindsym $mod+Shift+Right move right
  123.  
  124. # split in horizontal orientation
  125. bindsym $mod+h split h
  126.  
  127. # split in vertical orientation
  128. bindsym $mod+v split v
  129.  
  130. # enter fullscreen mode for the focused container
  131. bindsym $mod+f fullscreen toggle
  132.  
  133. # change container layout (stacked, tabbed, toggle split)
  134. bindsym $mod+s layout stacking
  135. bindsym $mod+w layout tabbed
  136. bindsym $mod+e layout toggle split
  137.  
  138. # toggle tiling / floating
  139. bindsym $mod+Shift+space floating toggle
  140.  
  141. # change focus between tiling / floating windows
  142. bindsym $mod+space focus mode_toggle
  143.  
  144. # focus the parent container
  145. bindsym $mod+a focus parent
  146.  
  147. # focus the child container
  148. #bindsym $mod+d focus child
  149.  
  150. # Define names for default workspaces for which we configure key bindings later on.
  151. # We use variables to avoid repeating the names in multiple places.
  152. set $ws1 "1"
  153. set $ws2 "2"
  154. set $ws3 "3"
  155. set $ws4 "4"
  156. set $ws5 "5"
  157. set $ws6 "6"
  158. set $ws7 "7"
  159. set $ws8 "8"
  160. set $ws9 "9"
  161. set $ws10 "10"
  162.  
  163. # switch to workspace
  164. bindsym $mod+1 workspace number $ws1
  165. bindsym $mod+2 workspace number $ws2
  166. bindsym $mod+3 workspace number $ws3
  167. bindsym $mod+4 workspace number $ws4
  168. bindsym $mod+5 workspace number $ws5
  169. bindsym $mod+6 workspace number $ws6
  170. bindsym $mod+7 workspace number $ws7
  171. bindsym $mod+8 workspace number $ws8
  172. bindsym $mod+9 workspace number $ws9
  173. bindsym $mod+0 workspace number $ws10
  174.  
  175. # move focused container to workspace
  176. bindsym $mod+Shift+1 move container to workspace number $ws1
  177. bindsym $mod+Shift+2 move container to workspace number $ws2
  178. bindsym $mod+Shift+3 move container to workspace number $ws3
  179. bindsym $mod+Shift+4 move container to workspace number $ws4
  180. bindsym $mod+Shift+5 move container to workspace number $ws5
  181. bindsym $mod+Shift+6 move container to workspace number $ws6
  182. bindsym $mod+Shift+7 move container to workspace number $ws7
  183. bindsym $mod+Shift+8 move container to workspace number $ws8
  184. bindsym $mod+Shift+9 move container to workspace number $ws9
  185. bindsym $mod+Shift+0 move container to workspace number $ws10
  186.  
  187. # reload the configuration file
  188. bindsym $mod+Shift+c reload
  189. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  190. bindsym $mod+Shift+r restart
  191. # exit i3 (logs you out of your X session)
  192. 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'"
  193.  
  194. # resize window (you can also use the mouse for that)
  195. mode "resize" {
  196. # These bindings trigger as soon as you enter the resize mode
  197.  
  198. # Pressing left will shrink the window’s width.
  199. # Pressing right will grow the window’s width.
  200. # Pressing up will shrink the window’s height.
  201. # Pressing down will grow the window’s height.
  202. bindsym j resize shrink width 10 px or 10 ppt
  203. bindsym k resize grow height 10 px or 10 ppt
  204. bindsym l resize shrink height 10 px or 10 ppt
  205. bindsym semicolon resize grow width 10 px or 10 ppt
  206.  
  207. # same bindings, but for the arrow keys
  208. bindsym Left resize shrink width 10 px or 10 ppt
  209. bindsym Down resize grow height 10 px or 10 ppt
  210. bindsym Up resize shrink height 10 px or 10 ppt
  211. bindsym Right resize grow width 10 px or 10 ppt
  212.  
  213. # back to normal: Enter or Escape or $mod+r
  214. bindsym Return mode "default"
  215. bindsym Escape mode "default"
  216. bindsym $mod+r mode "default"
  217. }
  218.  
  219. bindsym $mod+r mode "resize"
  220.  
  221. # Start i3bar to display a workspace bar (plus the system information i3status
  222. # finds out, if available)
  223. bar {
  224. tray_output eDP-1
  225. status_command i3status
  226. position top
  227. strip_workspace_numbers yes
  228. font pango:Terminus 12px
  229. }
  230.  
  231.  
  232.  
  233. ##############RUN STARTUP SCRIPT LAST#################################################
  234. exec --no-startup-id /home/alex/.config/i3/start.sh
  235. ##############This needs ot happen after the script has run (maybe) ##################
  236.  
Advertisement
Add Comment
Please, Sign In to add comment