mirror of
				https://github.com/frebib/dotfiles.git
				synced 2024-06-14 12:57:23 +00:00 
			
		
		
		
	Compare commits
	
		
			40 Commits
		
	
	
		
			a7f104e942
			...
			surface
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						7ec8be00be
	
				 | 
					
					
						|||
| 
						
						
							
						
						732a366b30
	
				 | 
					
					
						|||
| 
						
						
							
						
						d8b36c48bb
	
				 | 
					
					
						|||
| 
						
						
							
						
						677fce1907
	
				 | 
					
					
						|||
| 
						
						
							
						
						83b006c9d5
	
				 | 
					
					
						|||
| 
						
						
							
						
						015fffbbd4
	
				 | 
					
					
						|||
| 
						
						
							
						
						22fa8c810f
	
				 | 
					
					
						|||
| 
						
						
							
						
						ae67b62ebe
	
				 | 
					
					
						|||
| 
						
						
							
						
						ea51f79785
	
				 | 
					
					
						|||
| 
						
						
							
						
						f03b3ee8df
	
				 | 
					
					
						|||
| 
						
						
							
						
						f17927e0ee
	
				 | 
					
					
						|||
| 
						
						
							
						
						fd63032392
	
				 | 
					
					
						|||
| 
						
						
							
						
						9ee742294d
	
				 | 
					
					
						|||
| e7baaf0a80 | |||
| 
						
						
							
						
						5d90dda3f5
	
				 | 
					
					
						|||
| 
						
						
							
						
						82ad05ca0a
	
				 | 
					
					
						|||
| 
						
						
							
						
						d52ece0b12
	
				 | 
					
					
						|||
| 
						
						
							
						
						52cb279f3b
	
				 | 
					
					
						|||
| 
						
						
							
						
						618b78e62e
	
				 | 
					
					
						|||
| 
						
						
							
						
						20e01667f9
	
				 | 
					
					
						|||
| 
						
						
							
						
						e3b276aecf
	
				 | 
					
					
						|||
| 
						
						
							
						
						3dfed805f9
	
				 | 
					
					
						|||
| 
						
						
							
						
						61ab086664
	
				 | 
					
					
						|||
| 
						
						
							
						
						7bbd52d4d8
	
				 | 
					
					
						|||
| 
						
						
							
						
						b0267c548a
	
				 | 
					
					
						|||
| 
						
						
							
						
						46c01329cf
	
				 | 
					
					
						|||
| 
						
						
							
						
						9433c26d62
	
				 | 
					
					
						|||
| 
						
						
							
						
						c1480498c1
	
				 | 
					
					
						|||
| 
						
						
							
						
						809104c10f
	
				 | 
					
					
						|||
| 
						
						
							
						
						45192635af
	
				 | 
					
					
						|||
| 
						
						
							
						
						8b95f13919
	
				 | 
					
					
						|||
| 
						
						
							
						
						e15c8d4ed7
	
				 | 
					
					
						|||
| 
						
						
							
						
						f942d3ee31
	
				 | 
					
					
						|||
| 
						
						
							
						
						5084da39a5
	
				 | 
					
					
						|||
| 
						
						
							
						
						12f5f2bdc9
	
				 | 
					
					
						|||
| 
						
						
							
						
						0921b3c91c
	
				 | 
					
					
						|||
| 
						
						
							
						
						e31edd3980
	
				 | 
					
					
						|||
| 
						
						
							
						
						9d9035a8ad
	
				 | 
					
					
						|||
| 
						
						
							
						
						4246ccac86
	
				 | 
					
					
						|||
| 
						
						
							
						
						24161b8a4a
	
				 | 
					
					
						
@@ -12,6 +12,7 @@ export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open
 | 
				
			|||||||
# Load Xorg resources and set the DPI
 | 
					# Load Xorg resources and set the DPI
 | 
				
			||||||
xrdb -merge $XDG_CONFIG_HOME/X11/xresources
 | 
					xrdb -merge $XDG_CONFIG_HOME/X11/xresources
 | 
				
			||||||
xrandr --dpi $(xrdb -query | grep -i xft.dpi | cut -d: -f2)
 | 
					xrandr --dpi $(xrdb -query | grep -i xft.dpi | cut -d: -f2)
 | 
				
			||||||
 | 
					xrandr --output eDP1 --primary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
setxkbmap -option caps:none
 | 
					setxkbmap -option caps:none
 | 
				
			||||||
xset r rate 200 18
 | 
					xset r rate 200 18
 | 
				
			||||||
@@ -22,3 +23,6 @@ if [ -n "$DISPLAY" ] && exists autocutsel && ! pidof autocutsel 1>/dev/null; the
 | 
				
			|||||||
    autocutsel -fork
 | 
					    autocutsel -fork
 | 
				
			||||||
    autocutsel -selection PRIMARY -fork
 | 
					    autocutsel -selection PRIMARY -fork
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					~/.local/share/surface-scripts/pend &
 | 
				
			||||||
 | 
					~/.local/share/surface-scripts/rotationd &
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
*.color15:      #eceff1
 | 
					*.color15:      #eceff1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Xft.dpi:        96
 | 
					Xft.dpi:        140
 | 
				
			||||||
Xft.antialias:  true
 | 
					Xft.antialias:  true
 | 
				
			||||||
Xft.rgba:       rgb
 | 
					Xft.rgba:       rgb
 | 
				
			||||||
Xft.hinting:    true
 | 
					Xft.hinting:    true
 | 
				
			||||||
@@ -59,11 +59,11 @@ xterm.metaSendsEscape:      true
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
urxvt.termName:             xterm-256color
 | 
					urxvt.termName:             xterm-256color
 | 
				
			||||||
 | 
					
 | 
				
			||||||
urxvt.font:                 xft:Source Code Pro:style=regular:size=9
 | 
					urxvt.font:                 xft:Source Code Pro:style=regular:size=9.8
 | 
				
			||||||
urxvt.imFont:               xft:Source Code Pro:style=regular:size=9
 | 
					urxvt.imFont:               xft:Source Code Pro:style=regular:size=9.8
 | 
				
			||||||
urxvt.boldFont:             xft:Source Code Pro:style=bold:size=9
 | 
					urxvt.boldFont:             xft:Source Code Pro:style=bold:size=9
 | 
				
			||||||
urxvt.italicFont:           xft:Source Code Pro:style=italic:size=9
 | 
					urxvt.italicFont:           xft:Source Code Pro:style=italic:size=9.8
 | 
				
			||||||
urxvt.boldItalicFont:       xft:Source Code Pro:style=bold,italic:size=9
 | 
					urxvt.boldItalicFont:       xft:Source Code Pro:style=bold,italic:size=9.8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
urxvt.iso14755:             false
 | 
					urxvt.iso14755:             false
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,12 +28,8 @@ window:
 | 
				
			|||||||
  # Blank space added around the window in pixels. This padding is scaled
 | 
					  # Blank space added around the window in pixels. This padding is scaled
 | 
				
			||||||
  # by DPI and the specified value is always added at both opposing sides.
 | 
					  # by DPI and the specified value is always added at both opposing sides.
 | 
				
			||||||
  padding:
 | 
					  padding:
 | 
				
			||||||
    x: 22
 | 
					    x: 15
 | 
				
			||||||
    y: 22
 | 
					    y: 15
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # Spread additional padding evenly around the terminal content.
 | 
					 | 
				
			||||||
  dynamic_padding: false
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Window decorations
 | 
					  # Window decorations
 | 
				
			||||||
  #
 | 
					  #
 | 
				
			||||||
@@ -42,17 +38,6 @@ window:
 | 
				
			|||||||
  #     - none: Neither borders nor title bar
 | 
					  #     - none: Neither borders nor title bar
 | 
				
			||||||
  decorations: full
 | 
					  decorations: full
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Startup Mode (changes require restart)
 | 
					 | 
				
			||||||
  #
 | 
					 | 
				
			||||||
  # Values for `startup_mode`:
 | 
					 | 
				
			||||||
  #   - Windowed
 | 
					 | 
				
			||||||
  #   - Maximized
 | 
					 | 
				
			||||||
  #   - Fullscreen
 | 
					 | 
				
			||||||
  #
 | 
					 | 
				
			||||||
  # Values for `startup_mode` (macOS only):
 | 
					 | 
				
			||||||
  #   - SimpleFullscreen
 | 
					 | 
				
			||||||
  startup_mode: Windowed
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
scrolling:
 | 
					scrolling:
 | 
				
			||||||
  # Maximum number of lines in the scrollback buffer.
 | 
					  # Maximum number of lines in the scrollback buffer.
 | 
				
			||||||
  # Specifying '0' will disable scrolling.
 | 
					  # Specifying '0' will disable scrolling.
 | 
				
			||||||
@@ -62,6 +47,15 @@ scrolling:
 | 
				
			|||||||
  # scrollback is enabled (history > 0).
 | 
					  # scrollback is enabled (history > 0).
 | 
				
			||||||
  multiplier: 3
 | 
					  multiplier: 3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Faux Scrolling
 | 
				
			||||||
 | 
					  #
 | 
				
			||||||
 | 
					  # The `faux_multiplier` setting controls the number of lines the terminal
 | 
				
			||||||
 | 
					  # should scroll when the alternate screen buffer is active. This is used
 | 
				
			||||||
 | 
					  # to allow mouse scrolling for applications like `man`.
 | 
				
			||||||
 | 
					  #
 | 
				
			||||||
 | 
					  # Specifying `0` will disable faux scrolling.
 | 
				
			||||||
 | 
					  faux_multiplier: 3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Scroll to the bottom when new text is written to the terminal.
 | 
					  # Scroll to the bottom when new text is written to the terminal.
 | 
				
			||||||
  auto_scroll: false
 | 
					  auto_scroll: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -72,7 +66,7 @@ scrolling:
 | 
				
			|||||||
# Some applications, like Emacs, rely on knowing about the width of a tab.
 | 
					# Some applications, like Emacs, rely on knowing about the width of a tab.
 | 
				
			||||||
# To prevent unexpected behavior in these applications, it's also required to
 | 
					# To prevent unexpected behavior in these applications, it's also required to
 | 
				
			||||||
# change the `it` value in terminfo when altering this setting.
 | 
					# change the `it` value in terminfo when altering this setting.
 | 
				
			||||||
tabspaces: 4
 | 
					tabspaces: 8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Font configuration (changes require restart)
 | 
					# Font configuration (changes require restart)
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
@@ -126,9 +120,8 @@ font:
 | 
				
			|||||||
    x: 0
 | 
					    x: 0
 | 
				
			||||||
    y: 0
 | 
					    y: 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
debug:
 | 
					# Display the time it takes to redraw each frame.
 | 
				
			||||||
  # Display the time it takes to redraw each frame.
 | 
					render_timer: false
 | 
				
			||||||
  render_timer: false
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# If `true`, bold text is drawn using the bright color variants.
 | 
					# If `true`, bold text is drawn using the bright color variants.
 | 
				
			||||||
draw_bold_text_with_bright_colors: true
 | 
					draw_bold_text_with_bright_colors: true
 | 
				
			||||||
@@ -155,15 +148,6 @@ colors:
 | 
				
			|||||||
    text:       '0xeceff1'
 | 
					    text:       '0xeceff1'
 | 
				
			||||||
    cursor:     '0x5294e2'
 | 
					    cursor:     '0x5294e2'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Selection colors
 | 
					 | 
				
			||||||
  #
 | 
					 | 
				
			||||||
  # Colors which should be used to draw the selection area. If selection
 | 
					 | 
				
			||||||
  # background is unset, selection color will be the inverse of the cell colors.
 | 
					 | 
				
			||||||
  # If only text is unset the cell text color will remain the same.
 | 
					 | 
				
			||||||
  selection:
 | 
					 | 
				
			||||||
    background: '0x5294e2'
 | 
					 | 
				
			||||||
  #  text: '0xeaeaea'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # Normal colors
 | 
					  # Normal colors
 | 
				
			||||||
  normal:
 | 
					  normal:
 | 
				
			||||||
    black:      '0x333638'
 | 
					    black:      '0x333638'
 | 
				
			||||||
@@ -223,7 +207,7 @@ visual_bell:
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# Window opacity as a floating point number from `0.0` to `1.0`.
 | 
					# Window opacity as a floating point number from `0.0` to `1.0`.
 | 
				
			||||||
# The value `0.0` is completely transparent and `1.0` is opaque.
 | 
					# The value `0.0` is completely transparent and `1.0` is opaque.
 | 
				
			||||||
background_opacity: 0.85
 | 
					background_opacity: 0.95
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Mouse bindings
 | 
					# Mouse bindings
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
@@ -383,9 +367,9 @@ key_bindings:
 | 
				
			|||||||
  - { key: Q,        mods: Command, action: Quit                         }
 | 
					  - { key: Q,        mods: Command, action: Quit                         }
 | 
				
			||||||
  - { key: W,        mods: Command, action: Quit                         }
 | 
					  - { key: W,        mods: Command, action: Quit                         }
 | 
				
			||||||
  - { key: Insert,   mods: Shift,   action: PasteSelection               }
 | 
					  - { key: Insert,   mods: Shift,   action: PasteSelection               }
 | 
				
			||||||
  - { key: Equals,   mods: Control, action: ResetFontSize                }
 | 
					  - { key: Key0,     mods: Control, action: ResetFontSize                }
 | 
				
			||||||
  - { key: Add,      mods: Control|Shift,    action: IncreaseFontSize    }
 | 
					  - { key: Equals,   mods: Control, action: IncreaseFontSize             }
 | 
				
			||||||
  - { key: Subtract, mods: Control|Shift,    action: DecreaseFontSize    }
 | 
					  - { key: Subtract, mods: Control, action: DecreaseFontSize             }
 | 
				
			||||||
  - { key: Home,                    chars: "\x1bOH",   mode: AppCursor   }
 | 
					  - { key: Home,                    chars: "\x1bOH",   mode: AppCursor   }
 | 
				
			||||||
  - { key: Home,                    chars: "\x1b[H",   mode: ~AppCursor  }
 | 
					  - { key: Home,                    chars: "\x1b[H",   mode: ~AppCursor  }
 | 
				
			||||||
  - { key: End,                     chars: "\x1bOF",   mode: AppCursor   }
 | 
					  - { key: End,                     chars: "\x1bOF",   mode: AppCursor   }
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								.config/chrome-flags.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.config/chrome-flags.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					--force-device-scale-factor=1.2
 | 
				
			||||||
@@ -1 +0,0 @@
 | 
				
			|||||||
--enable-features=OverlayScrollbar
 | 
					 | 
				
			||||||
							
								
								
									
										91
									
								
								.config/compton.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										91
									
								
								.config/compton.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,91 @@
 | 
				
			|||||||
 | 
					# Shadow
 | 
				
			||||||
 | 
					shadow = true;					# Enabled client-side shadows on windows.
 | 
				
			||||||
 | 
					no-dock-shadow = true;			# Avoid drawing shadows on dock/panel windows.
 | 
				
			||||||
 | 
					no-dnd-shadow = false;			# Don't draw shadows on DND windows.
 | 
				
			||||||
 | 
					clear-shadow = true;			# Zero the part of the shadow's mask behind the
 | 
				
			||||||
 | 
													# window. Fix some weirdness with ARGB windows.
 | 
				
			||||||
 | 
					shadow-radius = 12;				# The blur radius for shadows. (default 12)
 | 
				
			||||||
 | 
					shadow-offset-x = -16;	    	# The left offset for shadows. (default -15)
 | 
				
			||||||
 | 
					shadow-offset-y = -16;			# The top offset for shadows. (default -15)
 | 
				
			||||||
 | 
					shadow-opacity = 0.65;			# The translucency for shadows. (default .75)
 | 
				
			||||||
 | 
					# shadow-red = 0.0;				# Red color value of shadow. (0.0 - 1.0, defaults to 0)
 | 
				
			||||||
 | 
					# shadow-green = 0.0;			# Green color value of shadow. (0.0 - 1.0, defaults to 0)
 | 
				
			||||||
 | 
					# shadow-blue = 0.0;			# Blue color value of shadow. (0.0 - 1.0, defaults to 0)
 | 
				
			||||||
 | 
					shadow-exclude = [ "class_g = 'slop'" ];	# Exclude conditions for shadows.
 | 
				
			||||||
 | 
					shadow-ignore-shaped = false;	# Avoid drawing shadow on all shaped windows
 | 
				
			||||||
 | 
													# (see also: --detect-rounded-corners)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Opacity
 | 
				
			||||||
 | 
					menu-opacity = 0.9;				# The opacity for menus. (default 1.0)
 | 
				
			||||||
 | 
					inactive-opacity = 0.7;			# Default opacity of inactive windows. (0.0 - 1.0)
 | 
				
			||||||
 | 
					active-opacity = 1.0;			# Default opacity for active windows. (0.0 - 1.0)
 | 
				
			||||||
 | 
					frame-opacity = 1.0;			# Opacity of window titlebars and borders. (0.1 - 1.0)
 | 
				
			||||||
 | 
					inactive-opacity-override = true;	# Let inactive opacity set by 'inactive-opacity' overrides
 | 
				
			||||||
 | 
													# value of _NET_WM_OPACITY. Bad choice.
 | 
				
			||||||
 | 
					opacity-rule = [
 | 
				
			||||||
 | 
					  "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					alpha-step = 0.02;				# XRender backend: Step size for alpha pictures. Increasing
 | 
				
			||||||
 | 
													# it may result in less X resource usage,
 | 
				
			||||||
 | 
													# Yet f ading may look bad.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Blurring
 | 
				
			||||||
 | 
					blur-method = "dual_kawase";
 | 
				
			||||||
 | 
					blur-strength = 6;
 | 
				
			||||||
 | 
					blur-background = true;		    # Blur background of transparent windows.
 | 
				
			||||||
 | 
					blur-background-exclude  = [ "class_g = 'Peek'", "class_g = 'Onboard'", "class_g = 'slop'", "class_g = 'Polybar'" ];
 | 
				
			||||||
 | 
					blur-background-frame = true;	# Blur background of opaque windows with transparent
 | 
				
			||||||
 | 
													# frames as well.
 | 
				
			||||||
 | 
					blur-background-fixed = false;	# Do not let blur radius adjust based on window opacity.
 | 
				
			||||||
 | 
													# Exclude conditions for background blur.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Fading
 | 
				
			||||||
 | 
					fading = true;					# Fade windows during opacity changes.
 | 
				
			||||||
 | 
					# fade-delta = 16;				# The time between steps in a fade in milliseconds. (default 10).
 | 
				
			||||||
 | 
					fade-in-step = 0.022;			# Opacity change between steps while fading in. (default 0.028).
 | 
				
			||||||
 | 
					fade-out-step = 0.02;			# Opacity change between steps while fading out. (default 0.03).
 | 
				
			||||||
 | 
					# no-fading-openclose = true;	# Avoid fade windows in/out when opening/closing.
 | 
				
			||||||
 | 
					# fade-exclude = [ ];				# Exclude conditions for fading.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Other
 | 
				
			||||||
 | 
					backend = "glx"					# Backend to use: "xrender" or "glx". GLX backend is typically
 | 
				
			||||||
 | 
													# much faster but depends on a sane driver.
 | 
				
			||||||
 | 
					mark-wmwin-focused = true;		# Try to detect WM windows and mark them as active.
 | 
				
			||||||
 | 
					mark-ovredir-focused = true;	# Mark all non-WM but override-redirect windows active (e.g. menus).
 | 
				
			||||||
 | 
					use-ewmh-active-win = true;		# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused
 | 
				
			||||||
 | 
													# instead of using FocusIn/Out events. Usually more reliable but
 | 
				
			||||||
 | 
													# depends on a EWMH-compliant WM.
 | 
				
			||||||
 | 
					detect-rounded-corners = true;	# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
 | 
				
			||||||
 | 
					detect-client-opacity = true;	# Detect _NET_WM_OPACITY on client windows, useful for window
 | 
				
			||||||
 | 
													# managers not passing _NET_WM_OPACITY of client windows to frame windows.
 | 
				
			||||||
 | 
					refresh-rate = 0;				# For --sw-opti: Specify refresh rate of the screen. 0 for auto.
 | 
				
			||||||
 | 
					vsync = "none";					# "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"
 | 
				
			||||||
 | 
													# See man page for more details.
 | 
				
			||||||
 | 
					dbe = false;					# Enable DBE painting mode. Rarely needed.
 | 
				
			||||||
 | 
					paint-on-overlay = true;		# Painting on X Composite overlay window. Recommended.
 | 
				
			||||||
 | 
					sw-opti = false;				# Limit compton to repaint at most once every 1 / refresh_rate.
 | 
				
			||||||
 | 
													# Incompatible with certain VSync methods.
 | 
				
			||||||
 | 
					unredir-if-possible = false;	# Unredirect all windows if a full-screen opaque window is
 | 
				
			||||||
 | 
													# detected, to maximize performance for full-screen windows.
 | 
				
			||||||
 | 
					focus-exclude = [ "i:ai:chromium" ];	# A list of conditions of windows that should always be considered focused.
 | 
				
			||||||
 | 
					detect-transient = true;		# Use WM_TRANSIENT_FOR to group windows, and consider windows in
 | 
				
			||||||
 | 
													# the same group focused at the same time.
 | 
				
			||||||
 | 
					detect-client-leader = true;	# Use WM_CLIENT_LEADER to group windows.
 | 
				
			||||||
 | 
					invert-color-include = [ ];		# Conditions for windows to be painted with inverted color.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# GLX backend					# GLX backend fine-tune options. See man page for more info.
 | 
				
			||||||
 | 
					glx-no-stencil = true;			# Recommended.
 | 
				
			||||||
 | 
					glx-copy-from-front = false;	# Useful with --glx-swap-method,
 | 
				
			||||||
 | 
					# glx-use-copysubbuffermesa = true; # Recommended if it works. Breaks VSync.
 | 
				
			||||||
 | 
					glx-no-rebind-pixmap = true;	# Recommended if it works.
 | 
				
			||||||
 | 
					glx-swap-method = "undefined";	# See man page.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Window type settings
 | 
				
			||||||
 | 
					wintypes:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  tooltip = { fade = true; shadow = false; opacity = 1; focus = true; };
 | 
				
			||||||
 | 
					  # fade: Fade the particular type of windows.
 | 
				
			||||||
 | 
					  # shadow: Give those windows shadow
 | 
				
			||||||
 | 
					  # opacity: Default opacity for the type of windows.
 | 
				
			||||||
 | 
					  # focus: Whether to always consider windows of this type focused.
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
[global]
 | 
					[global]
 | 
				
			||||||
    font = sans 9.5
 | 
					    font = sans 9
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    # Allow a small subset of html markup:
 | 
					    # Allow a small subset of html markup:
 | 
				
			||||||
    #   <b>bold</b>
 | 
					    #   <b>bold</b>
 | 
				
			||||||
@@ -65,7 +65,7 @@
 | 
				
			|||||||
    # screen width minus the width defined in within the geometry option.
 | 
					    # screen width minus the width defined in within the geometry option.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # 53 = 30 + 23 (bar-height)
 | 
					    # 53 = 30 + 23 (bar-height)
 | 
				
			||||||
    geometry = "360x5-30+30"
 | 
					    geometry = "560x5-30+30"
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    # Shrink window if it's smaller than the width.  Will be ignored if
 | 
					    # Shrink window if it's smaller than the width.  Will be ignored if
 | 
				
			||||||
    # width is 0.
 | 
					    # width is 0.
 | 
				
			||||||
@@ -146,7 +146,7 @@
 | 
				
			|||||||
    icon_position = left
 | 
					    icon_position = left
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Scale larger icons down to this size, set to 0 to disable
 | 
					    # Scale larger icons down to this size, set to 0 to disable
 | 
				
			||||||
    max_icon_size = 44
 | 
					    max_icon_size = 72
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Paths to default icons.
 | 
					    # Paths to default icons.
 | 
				
			||||||
    icon_path = /usr/share/icons/Xenlism-Wildfire/Status/:/usr/share/icons/Xenlism-Wildfire/Devices/:/usr/share/icons/Adwaita/32x32/status:/usr/share/icons/Adwaita/32x32/devices
 | 
					    icon_path = /usr/share/icons/Xenlism-Wildfire/Status/:/usr/share/icons/Xenlism-Wildfire/Devices/:/usr/share/icons/Adwaita/32x32/status:/usr/share/icons/Adwaita/32x32/devices
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
VteTerminal,
 | 
					VteTerminal,
 | 
				
			||||||
TerminalScreen,
 | 
					TerminalScreen,
 | 
				
			||||||
vte-terminal {
 | 
					vte-terminal {
 | 
				
			||||||
    padding: 1.8em;
 | 
					    padding: 1.3em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.window-frame, .window-frame:backdrop {
 | 
					.window-frame, .window-frame:backdrop {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,6 +31,7 @@ bindsym $mod+w split v
 | 
				
			|||||||
# enter fullscreen mode for the focused container
 | 
					# enter fullscreen mode for the focused container
 | 
				
			||||||
bindsym $mod+Shift+f fullscreen toggle global
 | 
					bindsym $mod+Shift+f fullscreen toggle global
 | 
				
			||||||
bindsym $mod+f fullscreen toggle
 | 
					bindsym $mod+f fullscreen toggle
 | 
				
			||||||
 | 
					popup_during_fullscreen leave_fullscreen
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# change container layout (stacked, tabbed, toggle split)
 | 
					# change container layout (stacked, tabbed, toggle split)
 | 
				
			||||||
bindsym $mod+p layout stacking
 | 
					bindsym $mod+p layout stacking
 | 
				
			||||||
@@ -45,21 +46,7 @@ bindsym $mod+e sticky toggle
 | 
				
			|||||||
bindsym $mod+a focus parent
 | 
					bindsym $mod+a focus parent
 | 
				
			||||||
bindsym $mod+o focus child
 | 
					bindsym $mod+o focus child
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#  Screen configs  #
 | 
					set $10 "10:"
 | 
				
			||||||
set    $bl  "DP-5"
 | 
					 | 
				
			||||||
set    $tl  "DP-1"
 | 
					 | 
				
			||||||
set    $br  "HDMI-0"
 | 
					 | 
				
			||||||
set    $tr  "DP-3"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Workspace -> Screen
 | 
					 | 
				
			||||||
workspace 1 output $bl
 | 
					 | 
				
			||||||
workspace 2 output $br
 | 
					 | 
				
			||||||
workspace 3 output $tl
 | 
					 | 
				
			||||||
workspace 4 output $tr
 | 
					 | 
				
			||||||
workspace 5 output $bl
 | 
					 | 
				
			||||||
workspace 6 output $br
 | 
					 | 
				
			||||||
workspace 7 output $tl
 | 
					 | 
				
			||||||
workspace 8 output $tr
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# switch to workspace
 | 
					# switch to workspace
 | 
				
			||||||
bindsym $mod+1 workspace 1
 | 
					bindsym $mod+1 workspace 1
 | 
				
			||||||
@@ -71,7 +58,7 @@ bindsym $mod+6 workspace 6
 | 
				
			|||||||
bindsym $mod+7 workspace 7
 | 
					bindsym $mod+7 workspace 7
 | 
				
			||||||
bindsym $mod+8 workspace 8
 | 
					bindsym $mod+8 workspace 8
 | 
				
			||||||
bindsym $mod+9 workspace 9
 | 
					bindsym $mod+9 workspace 9
 | 
				
			||||||
bindsym $mod+0 workspace 10
 | 
					bindsym $mod+0 workspace $10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# move workspaces across screens
 | 
					# move workspaces across screens
 | 
				
			||||||
bindsym $mod+$alt+d move workspace to output left
 | 
					bindsym $mod+$alt+d move workspace to output left
 | 
				
			||||||
@@ -89,7 +76,7 @@ bindsym $mod+Shift+6 move container to workspace 6
 | 
				
			|||||||
bindsym $mod+Shift+7 move container to workspace 7
 | 
					bindsym $mod+Shift+7 move container to workspace 7
 | 
				
			||||||
bindsym $mod+Shift+8 move container to workspace 8
 | 
					bindsym $mod+Shift+8 move container to workspace 8
 | 
				
			||||||
bindsym $mod+Shift+9 move container to workspace 9
 | 
					bindsym $mod+Shift+9 move container to workspace 9
 | 
				
			||||||
bindsym $mod+Shift+0 move container to workspace 10
 | 
					bindsym $mod+Shift+0 move container to workspace $10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# opens logout/shutdown menu
 | 
					# opens logout/shutdown menu
 | 
				
			||||||
bindsym $mod+Shift+Escape exec --no-startup-id ~/.config/i3/powermenu.sh
 | 
					bindsym $mod+Shift+Escape exec --no-startup-id ~/.config/i3/powermenu.sh
 | 
				
			||||||
@@ -108,7 +95,6 @@ client.focused_inactive $inactive-bg-color  $inactive-bg-color $inactive-text-co
 | 
				
			|||||||
client.urgent           $urgent-bg-color    $urgent-bg-color   $text-color          $bg-color
 | 
					client.urgent           $urgent-bg-color    $urgent-bg-color   $text-color          $bg-color
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exec_always --no-startup-id killall -q polybar; while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done; exec polybar -r i3bar
 | 
					exec_always --no-startup-id killall -q polybar; while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done; exec polybar -r i3bar
 | 
				
			||||||
exec_always --no-startup-id feh --no-fehbg --no-xinerama --bg-fill $DOTFILES/lakesidesunrise.jpg
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Window rules
 | 
					# Window rules
 | 
				
			||||||
for_window [class="Pinentry"] floating enable
 | 
					for_window [class="Pinentry"] floating enable
 | 
				
			||||||
@@ -123,7 +109,7 @@ for_window [title="^rofi$"] floating enable
 | 
				
			|||||||
new_window none
 | 
					new_window none
 | 
				
			||||||
new_float none
 | 
					new_float none
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gaps inner 20
 | 
					gaps inner 12
 | 
				
			||||||
gaps outer 4
 | 
					gaps outer 4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
focus_follows_mouse yes
 | 
					focus_follows_mouse yes
 | 
				
			||||||
@@ -138,9 +124,9 @@ bindsym $mod+Return             exec i3-sensible-terminal
 | 
				
			|||||||
bindsym $mod+Ctrl+Return        exec i3-sensible-terminal -r floating-term
 | 
					bindsym $mod+Ctrl+Return        exec i3-sensible-terminal -r floating-term
 | 
				
			||||||
bindsym $mod+Shift+Return       exec i3-sensible-terminal -d "`xcwd`"
 | 
					bindsym $mod+Shift+Return       exec i3-sensible-terminal -d "`xcwd`"
 | 
				
			||||||
bindsym $mod+Ctrl+Shift+Return  exec i3-sensible-terminal -r floating-term -d "`xcwd`"
 | 
					bindsym $mod+Ctrl+Shift+Return  exec i3-sensible-terminal -r floating-term -d "`xcwd`"
 | 
				
			||||||
bindsym $mod+l                  exec dm-tool switch-to-greeter
 | 
					bindsym $mod+l                  exec ~/.config/i3/lock.sh
 | 
				
			||||||
bindsym $mod+space              exec "pkill rofi; rofi -show run -sidebar-mode -terminal i3-sensible-terminal -normal-window"
 | 
					bindsym $mod+space              exec "pkill rofi; rofi -show run -sidebar-mode -terminal i3-sensible-terminal -normal-window"
 | 
				
			||||||
bindsym $mod+Shift+p            exec rofi-pass --root $(grep path ~/.config/gopass/config.yml | sed -E 's|^.*fs\+file://||g' | tr '\n' ':') | sed 's/:$//g'
 | 
					bindsym $mod+Shift+p            exec rofi-pass
 | 
				
			||||||
bindsym $mod+Shift+e            exec rofi-emoji
 | 
					bindsym $mod+Shift+e            exec rofi-emoji
 | 
				
			||||||
bindsym $mod+Shift+i            exec rofi-fontawesome
 | 
					bindsym $mod+Shift+i            exec rofi-fontawesome
 | 
				
			||||||
bindsym --release Print         exec screenshot
 | 
					bindsym --release Print         exec screenshot
 | 
				
			||||||
@@ -149,14 +135,13 @@ bindsym $mod+$alt+space         exec --no-startup-id ~/.config/i3/cycleaudio.py
 | 
				
			|||||||
bindsym $mod+numbersign         exec "i3-sensible-terminal -e 'sh -c xclip\ -o\ |\ gpg\ --decrypt\ 2>&1\ \;\ $SHELL'"
 | 
					bindsym $mod+numbersign         exec "i3-sensible-terminal -e 'sh -c xclip\ -o\ |\ gpg\ --decrypt\ 2>&1\ \;\ $SHELL'"
 | 
				
			||||||
bindsym $mod+r                  exec "bash -c 'pwgen -nc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i'"
 | 
					bindsym $mod+r                  exec "bash -c 'pwgen -nc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i'"
 | 
				
			||||||
bindsym $mod+g                  exec "LINK=$(gist -PRpc); notify-send -c transfer \\"<a href=\\\\"$LINK\\\\">$LINK</a>\\""
 | 
					bindsym $mod+g                  exec "LINK=$(gist -PRpc); notify-send -c transfer \\"<a href=\\\\"$LINK\\\\">$LINK</a>\\""
 | 
				
			||||||
bindsym --release $mod+i        exec sh -c 'sleep 0.5 && xdotool type --delay 400 "$(xclip -o -selection clipboard)"'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Media player controls
 | 
					# Media player controls
 | 
				
			||||||
bindsym XF86AudioPlay           exec --no-startup-id playerctl -a play-pause
 | 
					bindsym XF86AudioPlay           exec --no-startup-id mpc toggle
 | 
				
			||||||
bindsym XF86AudioPause          exec --no-startup-id playerctl -a pause
 | 
					bindsym XF86AudioPause          exec --no-startup-id mpc pause
 | 
				
			||||||
bindsym XF86AudioStop           exec --no-startup-id playerctl -a stop
 | 
					bindsym XF86AudioStop           exec --no-startup-id mpc stop
 | 
				
			||||||
bindsym XF86AudioNext           exec --no-startup-id playerctl -a next
 | 
					bindsym XF86AudioNext           exec --no-startup-id mpc next
 | 
				
			||||||
bindsym XF86AudioPrev           exec --no-startup-id playerctl -a previous
 | 
					bindsym XF86AudioPrev           exec --no-startup-id mpc previous
 | 
				
			||||||
bindsym XF86AudioRaiseVolume    exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@  +1000
 | 
					bindsym XF86AudioRaiseVolume    exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@  +1000
 | 
				
			||||||
bindsym XF86AudioLowerVolume    exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@  -1000
 | 
					bindsym XF86AudioLowerVolume    exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@  -1000
 | 
				
			||||||
bindsym XF86AudioMute           exec --no-startup-id pactl set-sink-mute   @DEFAULT_SINK@ toggle
 | 
					bindsym XF86AudioMute           exec --no-startup-id pactl set-sink-mute   @DEFAULT_SINK@ toggle
 | 
				
			||||||
@@ -166,22 +151,23 @@ bindsym XF86MonBrightnessDown   exec xbacklight -dec 5 && pkill -RTMIN+12 i3bloc
 | 
				
			|||||||
# app launch shortcuts
 | 
					# app launch shortcuts
 | 
				
			||||||
exec --no-startup-id ~/.config/i3/disable-standby-fs.py
 | 
					exec --no-startup-id ~/.config/i3/disable-standby-fs.py
 | 
				
			||||||
exec --no-startup-id feh --no-fehbg --no-xinerama --bg-fill ~/pictures/lakesidesunrise.jpg
 | 
					exec --no-startup-id feh --no-fehbg --no-xinerama --bg-fill ~/pictures/lakesidesunrise.jpg
 | 
				
			||||||
exec --no-startup-id xautolock -time 5 -locker 'dm-tool switch-to-greeter' -nocloseout -nocloseerr
 | 
					exec --no-startup-id xautolock -time 5 -locker 'dm-tool lock' -nocloseout -nocloseerr
 | 
				
			||||||
exec --no-startup-id xss-lock dm-tool switch-to-greeter
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# startup programs
 | 
					# startup programs
 | 
				
			||||||
exec --no-startup-id nextcloud
 | 
					exec --no-startup-id nextcloud
 | 
				
			||||||
 | 
					exec --no-startup-id nm-applet
 | 
				
			||||||
exec --no-startup-id blueman-applet
 | 
					exec --no-startup-id blueman-applet
 | 
				
			||||||
exec --no-startup-id redshift
 | 
					exec --no-startup-id redshift
 | 
				
			||||||
exec --no-startup-id xbindkeys
 | 
					exec --no-startup-id xbindkeys
 | 
				
			||||||
exec --no-startup-id solaar
 | 
					exec --no-startup-id solaar
 | 
				
			||||||
exec --no-startup-id pullover
 | 
					exec --no-startup-id pullover
 | 
				
			||||||
 | 
					exec --no-startup-id onboard
 | 
				
			||||||
 | 
					exec --no-startup-id touchegg
 | 
				
			||||||
exec --no-startup-id mailnag
 | 
					exec --no-startup-id mailnag
 | 
				
			||||||
exec --no-startup-id picom -b --experimental-backends
 | 
					exec --no-startup-id compton -b --config ~/.config/compton.conf
 | 
				
			||||||
exec --no-startup-id chromium --no-startup-window
 | 
					exec --no-startup-id chromium --no-startup-window
 | 
				
			||||||
exec --no-startup-id thunderbird
 | 
					exec --no-startup-id thunderbird
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exec i3-msg 'workspace 1; exec sleep 2 && chromium'
 | 
					exec i3-msg 'workspace 1; exec chromium'
 | 
				
			||||||
exec i3-msg 'workspace 2; exec i3-sensible-terminal'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# vim:ft=i3
 | 
					# vim:ft=i3
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,9 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
option=$(echo "lock|logout|sleep|hibernate|power off|reboot|windows" | rofi -sep "|" -dmenu -i -p "" -auto-select -hide-scrollbar -monitor 0 -width 10 -lines 7 -location 3 -tokenize false -matching normal | xargs)
 | 
					option=$(echo "lock|logout|sleep|hibernate|power off|reboot|windows" | rofi -sep "|" -dmenu -i -p "" -auto-select -hide-scrollbar -monitor 0 -width 8 -lines 7 -location 3 -tokenize false -matching normal | xargs)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
case $option in
 | 
					case $option in
 | 
				
			||||||
    lock) dm-tool switch-to-greeter;;
 | 
					    lock) ./lock.sh;;
 | 
				
			||||||
    logout) i3-msg exit;;
 | 
					    logout) i3-msg exit;;
 | 
				
			||||||
    sleep) systemctl suspend;;
 | 
					    sleep) systemctl suspend;;
 | 
				
			||||||
    hibernate) systemctl hibernate;;
 | 
					    hibernate) systemctl hibernate;;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +0,0 @@
 | 
				
			|||||||
prefix=${XDG_DATA_HOME}/npm
 | 
					 | 
				
			||||||
cache=${XDG_CACHE_HOME}/npm
 | 
					 | 
				
			||||||
tmp=${XDG_RUNTIME_DIR}/npm
 | 
					 | 
				
			||||||
@@ -1,101 +0,0 @@
 | 
				
			|||||||
# Logging
 | 
					 | 
				
			||||||
log-level = "debug";
 | 
					 | 
				
			||||||
log-file = "/home/frebib/.local/share/picom.log";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Shadow
 | 
					 | 
				
			||||||
shadow = true;
 | 
					 | 
				
			||||||
shadow-radius = 24;
 | 
					 | 
				
			||||||
shadow-offset-x = -24;
 | 
					 | 
				
			||||||
shadow-offset-y = -24;
 | 
					 | 
				
			||||||
shadow-opacity = 0.6;
 | 
					 | 
				
			||||||
# shadow-red = 0.0;
 | 
					 | 
				
			||||||
# shadow-green = 0.0;
 | 
					 | 
				
			||||||
# shadow-blue = 0.0;
 | 
					 | 
				
			||||||
shadow-exclude = [
 | 
					 | 
				
			||||||
	"class_g = 'slop'",
 | 
					 | 
				
			||||||
	"class_g = 'Conky'",
 | 
					 | 
				
			||||||
	"class_g ?= 'Notify-osd'",
 | 
					 | 
				
			||||||
	"class_g = 'Cairo-clock'",
 | 
					 | 
				
			||||||
	"name = 'Notification'",
 | 
					 | 
				
			||||||
	"_GTK_FRAME_EXTENTS@:c"
 | 
					 | 
				
			||||||
];
 | 
					 | 
				
			||||||
# shadow-exclude = "n:e:Notification";
 | 
					 | 
				
			||||||
# shadow-exclude-reg = "x10+0+0";
 | 
					 | 
				
			||||||
xinerama-shadow-crop = true;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Opacity
 | 
					 | 
				
			||||||
frame-opacity = 1.0;
 | 
					 | 
				
			||||||
# active-opacity = 0.8;
 | 
					 | 
				
			||||||
inactive-opacity = 0.6;
 | 
					 | 
				
			||||||
inactive-opacity-override = true;
 | 
					 | 
				
			||||||
# inactive-dim = 0.2;
 | 
					 | 
				
			||||||
# inactive-dim-fixed = true;
 | 
					 | 
				
			||||||
opacity-rule = [
 | 
					 | 
				
			||||||
	"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
 | 
					 | 
				
			||||||
];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Blurring
 | 
					 | 
				
			||||||
blur:
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	method = "gaussian";
 | 
					 | 
				
			||||||
	size = 47;
 | 
					 | 
				
			||||||
	deviation = 25.0;
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
blur-background-frame = true;
 | 
					 | 
				
			||||||
blur-background-fixed = true;
 | 
					 | 
				
			||||||
blur-background-exclude = [
 | 
					 | 
				
			||||||
	"class_g = 'Peek'",
 | 
					 | 
				
			||||||
	"class_g = 'Onboard'",
 | 
					 | 
				
			||||||
	"class_g = 'slop'",
 | 
					 | 
				
			||||||
	"class_g = 'Polybar'",
 | 
					 | 
				
			||||||
	"window_type = 'dock'",
 | 
					 | 
				
			||||||
	"window_type = 'desktop'",
 | 
					 | 
				
			||||||
	"_GTK_FRAME_EXTENTS@:c"
 | 
					 | 
				
			||||||
];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Fading
 | 
					 | 
				
			||||||
fading = true;
 | 
					 | 
				
			||||||
fade-delta = 10;
 | 
					 | 
				
			||||||
fade-in-step = 0.03;
 | 
					 | 
				
			||||||
fade-out-step = 0.03;
 | 
					 | 
				
			||||||
no-fading-openclose = false;
 | 
					 | 
				
			||||||
no-fading-destroyed-argb = false;
 | 
					 | 
				
			||||||
# fade-exclude = [ ];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Other
 | 
					 | 
				
			||||||
backend = "glx";
 | 
					 | 
				
			||||||
mark-wmwin-focused = true;
 | 
					 | 
				
			||||||
mark-ovredir-focused = true;
 | 
					 | 
				
			||||||
use-ewmh-active-win = false;
 | 
					 | 
				
			||||||
detect-rounded-corners = true;
 | 
					 | 
				
			||||||
detect-client-opacity = true;
 | 
					 | 
				
			||||||
refresh-rate = 0;
 | 
					 | 
				
			||||||
vsync = true;
 | 
					 | 
				
			||||||
# sw-opti = true;
 | 
					 | 
				
			||||||
# unredir-if-possible = true;
 | 
					 | 
				
			||||||
# unredir-if-possible-delay = 5000;
 | 
					 | 
				
			||||||
# unredir-if-possible-exclude = [ ];
 | 
					 | 
				
			||||||
focus-exclude = [
 | 
					 | 
				
			||||||
	"i:ai:chromium",
 | 
					 | 
				
			||||||
	"class_g = 'Firefox'",
 | 
					 | 
				
			||||||
];
 | 
					 | 
				
			||||||
detect-transient = true;
 | 
					 | 
				
			||||||
detect-client-leader = true;
 | 
					 | 
				
			||||||
invert-color-include = [ ];
 | 
					 | 
				
			||||||
# resize-damage = 1;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# GLX backend
 | 
					 | 
				
			||||||
glx-no-stencil = true;
 | 
					 | 
				
			||||||
glx-no-rebind-pixmap = true;
 | 
					 | 
				
			||||||
xrender-sync-fence = true;
 | 
					 | 
				
			||||||
#use-damage = true;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Window type settings
 | 
					 | 
				
			||||||
wintypes:
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
 | 
					 | 
				
			||||||
  dock = { shadow = false; }
 | 
					 | 
				
			||||||
  dnd = { shadow = false; }
 | 
					 | 
				
			||||||
  popup_menu = { opacity = 0.8; }
 | 
					 | 
				
			||||||
  dropdown_menu = { opacity = 0.8; }
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
@@ -2,9 +2,8 @@
 | 
				
			|||||||
background = transparent
 | 
					background = transparent
 | 
				
			||||||
text = #eceff1
 | 
					text = #eceff1
 | 
				
			||||||
icon = #147a82
 | 
					icon = #147a82
 | 
				
			||||||
warning = #ffcb00
 | 
					warning = #bd2c40
 | 
				
			||||||
critical = #bd2c40
 | 
					critical = #bd2c40
 | 
				
			||||||
urgent = #e53935
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
[settings]
 | 
					[settings]
 | 
				
			||||||
format-foreground = ${colours.text}
 | 
					format-foreground = ${colours.text}
 | 
				
			||||||
@@ -13,35 +12,29 @@ format-spacing = 0
 | 
				
			|||||||
format-margin  = 2.5
 | 
					format-margin  = 2.5
 | 
				
			||||||
format-offset  = 0
 | 
					format-offset  = 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
screenchange-reload = true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[bar/i3bar]
 | 
					[bar/i3bar]
 | 
				
			||||||
dpi  = ${xrdb:Xft.dpi:96}
 | 
					monitor = ${env:MONITOR:eDP1}
 | 
				
			||||||
 | 
					dpi  = ${xrdb:Xft.dpi:-1}
 | 
				
			||||||
fixed-center = false
 | 
					fixed-center = false
 | 
				
			||||||
enable-ipc = true
 | 
					enable-ipc = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
width = 100%
 | 
					width = 100%
 | 
				
			||||||
#offset-x = 18px
 | 
					height = 44
 | 
				
			||||||
height = 16pt
 | 
					 | 
				
			||||||
bottom = true
 | 
					bottom = true
 | 
				
			||||||
radius = 0
 | 
					radius = 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
font-0 = sans:pixelsize=9;2
 | 
					 | 
				
			||||||
font-1 = FontAwesome5ProLight:pixelsize=10;2
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
foreground = ${colours.text}
 | 
					foreground = ${colours.text}
 | 
				
			||||||
background = ${colours.background}
 | 
					background = ${colours.background}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
padding-left = 0
 | 
					 | 
				
			||||||
padding-right = 2pt
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
border-size = 0
 | 
					 | 
				
			||||||
border-left-size = 16pt
 | 
					 | 
				
			||||||
border-right-size = 16pt
 | 
					 | 
				
			||||||
border-bottom-size = 8pt
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
line-size = 0
 | 
					line-size = 0
 | 
				
			||||||
line-colour = #f00
 | 
					line-colour = #f00
 | 
				
			||||||
 | 
					padding-left = 2
 | 
				
			||||||
 | 
					padding-right = 2
 | 
				
			||||||
 | 
					module-margin-left = 0
 | 
				
			||||||
 | 
					module-margin-right = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					font-0 = sans:pixelsize=9;1
 | 
				
			||||||
 | 
					font-1 = FontAwesome5Pro:pixelsize=10;2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
modules-left = i3
 | 
					modules-left = i3
 | 
				
			||||||
modules-center =
 | 
					modules-center =
 | 
				
			||||||
@@ -50,11 +43,11 @@ modules-right = volume updates weather wlan eth memory cpu xbacklight battery te
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
tray-position = right
 | 
					tray-position = right
 | 
				
			||||||
tray-detached = false
 | 
					tray-detached = false
 | 
				
			||||||
tray-background = ${colours.background}
 | 
					tray-background = ${root.background}
 | 
				
			||||||
#tray-offset-x = -20
 | 
					tray-offset-x = -6
 | 
				
			||||||
#tray-offset-y = 0
 | 
					tray-offset-y = -2
 | 
				
			||||||
tray-maxsize = 16
 | 
					tray-maxsize = 24
 | 
				
			||||||
tray-padding = 8pt
 | 
					tray-padding = 2
 | 
				
			||||||
tray-scale = 1.0
 | 
					tray-scale = 1.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cursor-click = pointer
 | 
					cursor-click = pointer
 | 
				
			||||||
@@ -96,7 +89,7 @@ wrapping-scroll = false
 | 
				
			|||||||
; Only show workspaces on the same output as the bar
 | 
					; Only show workspaces on the same output as the bar
 | 
				
			||||||
; pin-workspaces = true
 | 
					; pin-workspaces = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
label-mode-padding = 2
 | 
					label-mode-padding = 3
 | 
				
			||||||
label-mode-foreground = ${colours.text}
 | 
					label-mode-foreground = ${colours.text}
 | 
				
			||||||
label-mode-background = ${colours.background}
 | 
					label-mode-background = ${colours.background}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -122,7 +115,7 @@ label-visible-underline = ${self.label-focused-underline}
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
; urgent = Workspace with urgency hint set
 | 
					; urgent = Workspace with urgency hint set
 | 
				
			||||||
label-urgent = ${self.label-focused}
 | 
					label-urgent = ${self.label-focused}
 | 
				
			||||||
label-urgent-foreground = ${colours.urgent}
 | 
					label-urgent-foreground = ${colours.warning}
 | 
				
			||||||
label-urgent-padding = ${self.label-focused-padding}
 | 
					label-urgent-padding = ${self.label-focused-padding}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -233,7 +226,7 @@ ramp-volume-5 = ""
 | 
				
			|||||||
type = internal/battery
 | 
					type = internal/battery
 | 
				
			||||||
battery = BAT0
 | 
					battery = BAT0
 | 
				
			||||||
adapter = AC0
 | 
					adapter = AC0
 | 
				
			||||||
full-at = 98
 | 
					full-at = 95
 | 
				
			||||||
 | 
					
 | 
				
			||||||
format-full = <label-full>
 | 
					format-full = <label-full>
 | 
				
			||||||
format-charging = <label-charging>
 | 
					format-charging = <label-charging>
 | 
				
			||||||
@@ -261,7 +254,7 @@ ramp-capacity-1-foreground = ${colours.warning}
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[module/temperature]
 | 
					[module/temperature]
 | 
				
			||||||
type = internal/temperature
 | 
					type = internal/temperature
 | 
				
			||||||
thermal-zone = 2
 | 
					thermal-zone = 1
 | 
				
			||||||
warn-temperature = 70
 | 
					warn-temperature = 70
 | 
				
			||||||
 | 
					
 | 
				
			||||||
format = <ramp>  <label>
 | 
					format = <ramp>  <label>
 | 
				
			||||||
@@ -274,9 +267,11 @@ label-warn-foreground = ${colours.background}
 | 
				
			|||||||
ramp-0 = 
 | 
					ramp-0 = 
 | 
				
			||||||
ramp-1 = 
 | 
					ramp-1 = 
 | 
				
			||||||
ramp-2 = 
 | 
					ramp-2 = 
 | 
				
			||||||
ramp-3 = 
 | 
					ramp-3 = 
 | 
				
			||||||
ramp-4 = 
 | 
					ramp-4 = 
 | 
				
			||||||
ramp-5 = 
 | 
					ramp-5 = 
 | 
				
			||||||
 | 
					ramp-6 = 
 | 
				
			||||||
 | 
					ramp-7 = 
 | 
				
			||||||
ramp-foreground = ${colours.icon}
 | 
					ramp-foreground = ${colours.icon}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -307,4 +302,12 @@ menu-2-0-exec = sudo poweroff
 | 
				
			|||||||
menu-2-1 = cancel
 | 
					menu-2-1 = cancel
 | 
				
			||||||
menu-2-1-exec = menu-open-0
 | 
					menu-2-1-exec = menu-open-0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[settings]
 | 
				
			||||||
 | 
					screenchange-reload = true
 | 
				
			||||||
 | 
					;compositing-background = xor
 | 
				
			||||||
 | 
					;compositing-background = screen
 | 
				
			||||||
 | 
					;compositing-foreground = source
 | 
				
			||||||
 | 
					;compositing-border = over
 | 
				
			||||||
 | 
					
 | 
				
			||||||
; vim:ft=dosini
 | 
					; vim:ft=dosini
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -71,8 +71,8 @@ get_icon() {
 | 
				
			|||||||
        522) echo  ;;		# heavy intensity shower rain
 | 
					        522) echo  ;;		# heavy intensity shower rain
 | 
				
			||||||
        531) echo  ;;		# ragged shower rain
 | 
					        531) echo  ;;		# ragged shower rain
 | 
				
			||||||
        600) echo  ;;		# light snow
 | 
					        600) echo  ;;		# light snow
 | 
				
			||||||
        601) echo  ;;		# snow
 | 
					        601) echo  ;;		# snow
 | 
				
			||||||
        602) echo  ;;		# heavy snow
 | 
					        602) echo  ;;		# heavy snow
 | 
				
			||||||
        611) echo  ;;		# sleet
 | 
					        611) echo  ;;		# sleet
 | 
				
			||||||
        612) echo  ;;		# shower sleet
 | 
					        612) echo  ;;		# shower sleet
 | 
				
			||||||
        615) echo  ;;		# light rain and snow
 | 
					        615) echo  ;;		# light rain and snow
 | 
				
			||||||
@@ -86,6 +86,11 @@ get_icon() {
 | 
				
			|||||||
        741) echo  ;;		# fog
 | 
					        741) echo  ;;		# fog
 | 
				
			||||||
        762) echo  ;;		# volcanic ash
 | 
					        762) echo  ;;		# volcanic ash
 | 
				
			||||||
        781) echo  ;;		# tornado
 | 
					        781) echo  ;;		# tornado
 | 
				
			||||||
 | 
					        800) echo  ;;		# clear sky
 | 
				
			||||||
 | 
					        801) echo  ;;		# few clouds
 | 
				
			||||||
 | 
					        802) echo  ;;		# scattered clouds
 | 
				
			||||||
 | 
					        803) echo  ;;		# broken clouds
 | 
				
			||||||
 | 
					        804) echo  ;;		# overcast clouds
 | 
				
			||||||
        # 731) echo  ;;		# sand, dust whirls
 | 
					        # 731) echo  ;;		# sand, dust whirls
 | 
				
			||||||
        # 751) echo  ;;		# sand
 | 
					        # 751) echo  ;;		# sand
 | 
				
			||||||
        # 761) echo  ;;		# dust
 | 
					        # 761) echo  ;;		# dust
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										26
									
								
								.config/rofi/config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.config/rofi/config
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					!-----------------------------
 | 
				
			||||||
 | 
					! Rofi config
 | 
				
			||||||
 | 
					!-----------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					! State:            'bg',       'fg',     'bgalt'     'hlbg',   'hlfg'
 | 
				
			||||||
 | 
					rofi.color-window:  #F2383C4A,  #2F343F
 | 
				
			||||||
 | 
					rofi.color-normal:  #00383C4A,  #D3DAE3,  #00383C4A,  #5294E2,  #ECEFF1
 | 
				
			||||||
 | 
					rofi.bc:            #CC383C4A
 | 
				
			||||||
 | 
					rofi.bw:            5
 | 
				
			||||||
 | 
					rofi.padding:       8
 | 
				
			||||||
 | 
					rofi.lines:         14
 | 
				
			||||||
 | 
					rofi.width:         40
 | 
				
			||||||
 | 
					rofi.font:          Noto Sans 18
 | 
				
			||||||
 | 
					rofi.line-margin:   6
 | 
				
			||||||
 | 
					rofi.sep:           |
 | 
				
			||||||
 | 
					rofi.prompt:        >
 | 
				
			||||||
 | 
					rofi.ssh-command:   {terminal} -e "{ssh-client} {host}"
 | 
				
			||||||
 | 
					rofi.separator-style: solid
 | 
				
			||||||
 | 
					rofi.kb-row-tab:    Shift+Tab
 | 
				
			||||||
 | 
					rofi.kb-row-select: Tab
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rofi.matching:      glob
 | 
				
			||||||
 | 
					rofi.tokenize:      true
 | 
				
			||||||
 | 
					rofi.normal-window: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					! vim: ft=xdefaults
 | 
				
			||||||
@@ -2,8 +2,8 @@ configuration {
 | 
				
			|||||||
  theme: "arc-dark";
 | 
					  theme: "arc-dark";
 | 
				
			||||||
  font: "sans 14";
 | 
					  font: "sans 14";
 | 
				
			||||||
  dpi: 0;
 | 
					  dpi: 0;
 | 
				
			||||||
  width: 35;
 | 
					  width: 40;
 | 
				
			||||||
  lines: 10;
 | 
					  lines: 12;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* show-icons: true; */
 | 
					  /* show-icons: true; */
 | 
				
			||||||
  separator-style: "solid";
 | 
					  separator-style: "solid";
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								.config/systemd/user/sleep-i3lock@.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.config/systemd/user/sleep-i3lock@.service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Lock X session using i3lock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					User=%i
 | 
				
			||||||
 | 
					Environment=DISPLAY=:0
 | 
				
			||||||
 | 
					ExecStart=sh -c '~/.config/i3/lock.sh'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=sleep.target
 | 
				
			||||||
@@ -1,12 +0,0 @@
 | 
				
			|||||||
[Unit]
 | 
					 | 
				
			||||||
Description=Lock X LightDM session before sleeping
 | 
					 | 
				
			||||||
Before=sleep.target
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[Service]
 | 
					 | 
				
			||||||
Type=oneshot
 | 
					 | 
				
			||||||
ExecStart=/usr/bin/dm-tool switch-to-greeter
 | 
					 | 
				
			||||||
# Ensure enough time for the session to lock before sleeping
 | 
					 | 
				
			||||||
ExecStartPost=/usr/bin/sleep 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[Install]
 | 
					 | 
				
			||||||
WantedBy=sleep.target
 | 
					 | 
				
			||||||
@@ -1 +0,0 @@
 | 
				
			|||||||
../sleep-lock-lightdm.service
 | 
					 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
[options]
 | 
					[options]
 | 
				
			||||||
font = monospace 9
 | 
					font = monospace 9.5
 | 
				
			||||||
scrollback_lines = 1000000
 | 
					scrollback_lines = 1000000
 | 
				
			||||||
cursor_blink = off
 | 
					cursor_blink = off
 | 
				
			||||||
size_hints = true
 | 
					size_hints = true
 | 
				
			||||||
@@ -7,7 +7,7 @@ size_hints = true
 | 
				
			|||||||
[colors]
 | 
					[colors]
 | 
				
			||||||
cursor     = #5294E2
 | 
					cursor     = #5294E2
 | 
				
			||||||
foreground = #ECEFF1
 | 
					foreground = #ECEFF1
 | 
				
			||||||
background = rgba(56, 60, 74, 0.85)
 | 
					background = rgba(56, 60, 74, 0.95)
 | 
				
			||||||
highlight  = #5294E2
 | 
					highlight  = #5294E2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Colour order:
 | 
					# Colour order:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -80,7 +80,6 @@ bindkey '^[^[[3~' x-bash-backward-kill-word
 | 
				
			|||||||
bindkey '^[^[[3^' x-bash-backward-kill-word
 | 
					bindkey '^[^[[3^' x-bash-backward-kill-word
 | 
				
			||||||
bindkey '^[[A' fzf-history-widget                   # Up (fzf)
 | 
					bindkey '^[[A' fzf-history-widget                   # Up (fzf)
 | 
				
			||||||
bindkey '^[[B' fzf-history-widget                   # Down (fzf)
 | 
					bindkey '^[[B' fzf-history-widget                   # Down (fzf)
 | 
				
			||||||
bindkey '^F'   fzf-file-widget                      # Ctrl+F file search (fzf)
 | 
					 | 
				
			||||||
bindkey '^[[1;3A' history-substring-search-up       # Alt+Up (hsh)
 | 
					bindkey '^[[1;3A' history-substring-search-up       # Alt+Up (hsh)
 | 
				
			||||||
bindkey '^[[1;3B' history-substring-search-down     # Alt+Down (hsh)
 | 
					bindkey '^[[1;3B' history-substring-search-down     # Alt+Down (hsh)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -142,17 +141,9 @@ ZSH_HIGHLIGHT_STYLES[redirection]='fg=cyan,bold'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
source "$DOTFILES/aliases"
 | 
					source "$DOTFILES/aliases"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Source secret keys and values into environment
 | 
					 | 
				
			||||||
if [ -f "$XDG_CONFIG_HOME/secrets" ]; then
 | 
					 | 
				
			||||||
    set -o allexport
 | 
					 | 
				
			||||||
    source $XDG_CONFIG_HOME/secrets
 | 
					 | 
				
			||||||
    set +o allexport
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Load some manual plugins
 | 
					# Load some manual plugins
 | 
				
			||||||
source "$ZSH_DIR/plugins/sudo.zsh"
 | 
					source "$ZSH_DIR/plugins/sudo.zsh"
 | 
				
			||||||
source "$ZSH_DIR/plugins/fish-theme.zsh"
 | 
					source "$ZSH_DIR/plugins/fish-theme.zsh"
 | 
				
			||||||
source "$ZSH_DIR/plugins/git-rprompt.zsh"
 | 
					source "$ZSH_DIR/plugins/git-rprompt.zsh"
 | 
				
			||||||
[ -f '/usr/share/fzf/key-bindings.zsh' ] && source /usr/share/fzf/key-bindings.zsh
 | 
					[ -f '/usr/share/fzf/key-bindings.zsh' ] && source /usr/share/fzf/key-bindings.zsh
 | 
				
			||||||
[ -f '/usr/share/doc/pkgfile/command-not-found.zsh' ] && source /usr/share/doc/pkgfile/command-not-found.zsh
 | 
					[ -f '/usr/share/doc/pkgfile/command-not-found.zsh' ] && source /usr/share/doc/pkgfile/command-not-found.zsh
 | 
				
			||||||
[ -r '/usr/share/z/z.sh' ] && source /usr/share/z/z.sh
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					[submodule "surface-scripts"]
 | 
				
			||||||
 | 
						path = surface-scripts
 | 
				
			||||||
 | 
						url = https://github.com/frebib/surface-scripts.git
 | 
				
			||||||
							
								
								
									
										6
									
								
								.profile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								.profile
									
									
									
									
									
								
							@@ -25,7 +25,6 @@ export CARGO_HOME="$XDG_DATA_HOME/cargo"
 | 
				
			|||||||
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
 | 
					export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
 | 
				
			||||||
export GOPATH="$XDG_DATA_HOME/go"
 | 
					export GOPATH="$XDG_DATA_HOME/go"
 | 
				
			||||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/settings.ini"
 | 
					export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/settings.ini"
 | 
				
			||||||
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
 | 
					 | 
				
			||||||
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
 | 
					export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
 | 
				
			||||||
export PYTHONHISTFILE="$XDG_DATA_HOME/python/histfile"
 | 
					export PYTHONHISTFILE="$XDG_DATA_HOME/python/histfile"
 | 
				
			||||||
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
 | 
					export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
 | 
				
			||||||
@@ -39,7 +38,7 @@ export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
 | 
				
			|||||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
 | 
					export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export DOTFILES="$(dirname "${thisfile:-$XDG_CONFIG_HOME/dotfiles/.profile}")"
 | 
					export DOTFILES="$(dirname "${thisfile:-$XDG_CONFIG_HOME/dotfiles/.profile}")"
 | 
				
			||||||
export PATH="${PATH}:/sbin:/usr/sbin:$DOTFILES/scripts:$GOPATH/bin"
 | 
					export PATH="${PATH}:/sbin:/usr/sbin:$DOTFILES/scripts:$HOME/.local/share/surface-scripts:$GOPATH/bin"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
 | 
					exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -77,7 +76,6 @@ fi
 | 
				
			|||||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && exists dbus-launch; then
 | 
					if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && exists dbus-launch; then
 | 
				
			||||||
    eval $(dbus-launch --sh-syntax --exit-with-session)
 | 
					    eval $(dbus-launch --sh-syntax --exit-with-session)
 | 
				
			||||||
    dbus-update-activation-environment --systemd \
 | 
					    dbus-update-activation-environment --systemd \
 | 
				
			||||||
        DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY \
 | 
					        DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
 | 
				
			||||||
        XDG_SEAT_PATH
 | 
					 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										37
									
								
								aliases
									
									
									
									
									
								
							
							
						
						
									
										37
									
								
								aliases
									
									
									
									
									
								
							@@ -53,7 +53,7 @@ alias svim=sudoedit
 | 
				
			|||||||
# This will enable us to use aliases in sudo.
 | 
					# This will enable us to use aliases in sudo.
 | 
				
			||||||
# (If alias finishes with a space or tab, the shell will check if the next command is also aliased.)
 | 
					# (If alias finishes with a space or tab, the shell will check if the next command is also aliased.)
 | 
				
			||||||
# Source: https://github.com/mayah/home/blob/master/.zsh/zshrc.d/alias.zsh
 | 
					# Source: https://github.com/mayah/home/blob/master/.zsh/zshrc.d/alias.zsh
 | 
				
			||||||
alias sudo='sudo '
 | 
					alias sudo='sudo -E '
 | 
				
			||||||
alias open=xdg-open
 | 
					alias open=xdg-open
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Command rewrites
 | 
					# Command rewrites
 | 
				
			||||||
@@ -129,10 +129,10 @@ alias grm="git rm"
 | 
				
			|||||||
alias gc="git commit"
 | 
					alias gc="git commit"
 | 
				
			||||||
alias gcm="gc -m"
 | 
					alias gcm="gc -m"
 | 
				
			||||||
gcmst() { git stash -u -k && git commit -m "$1" && git stash pop; }
 | 
					gcmst() { git stash -u -k && git commit -m "$1" && git stash pop; }
 | 
				
			||||||
alias gca="git commit --amend --date=\"$(date -R)\""
 | 
					alias gca="git commit --amend"
 | 
				
			||||||
alias gcn="git commit --no-edit"
 | 
					alias gcn="git commit --no-edit"
 | 
				
			||||||
alias gcan="gca --no-edit"
 | 
					alias gcan="git commit --amend --no-edit"
 | 
				
			||||||
alias gcam="gca -m"
 | 
					alias gcam="git commit --amend -m"
 | 
				
			||||||
alias gst="git status"
 | 
					alias gst="git status"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
alias gm="git merge"
 | 
					alias gm="git merge"
 | 
				
			||||||
@@ -140,30 +140,25 @@ alias gma="git merge --abort"
 | 
				
			|||||||
alias grb="git rebase"
 | 
					alias grb="git rebase"
 | 
				
			||||||
alias grba="grb --abort"
 | 
					alias grba="grb --abort"
 | 
				
			||||||
alias grbc="grb --continue"
 | 
					alias grbc="grb --continue"
 | 
				
			||||||
alias grbsk="grb --skip"
 | 
					 | 
				
			||||||
alias grbsh="grb --show-current"
 | 
					 | 
				
			||||||
alias grbom="git rebase origin/master"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
alias gf="git fetch"
 | 
					alias gf="git fetch"
 | 
				
			||||||
alias gp="git push"
 | 
					alias gp="git push"
 | 
				
			||||||
alias gpf="gp --force"
 | 
					alias gpf="gp --force"
 | 
				
			||||||
alias gpsu="git push --set-upstream"
 | 
					alias gpsu="git push --set-upstream"
 | 
				
			||||||
alias gpoH="git push origin HEAD"
 | 
					 | 
				
			||||||
alias gpsuom="git push --set-upstream origin master"
 | 
					alias gpsuom="git push --set-upstream origin master"
 | 
				
			||||||
alias gpall="git remote | xargs -L1 git push"
 | 
					alias gpall="git remote | xargs -L1 git push"
 | 
				
			||||||
alias gl="git pull --rebase"
 | 
					alias gl="git pull --rebase"
 | 
				
			||||||
alias glp="gl && gp"
 | 
					alias glp="gl && gp"
 | 
				
			||||||
alias gd="git diff --patch-with-stat"
 | 
					alias gd="git diff"
 | 
				
			||||||
alias gds="gd --staged"
 | 
					alias gds="git diff --staged"
 | 
				
			||||||
alias gsh="git show --format=full --patch-with-stat"
 | 
					alias gsh="git show"
 | 
				
			||||||
alias glg="git log --format=full --stat --color"
 | 
					alias glg="git log --stat --color"
 | 
				
			||||||
alias glog="git log --oneline --decorate --color --graph"
 | 
					alias glog="git log --oneline --decorate --color --graph"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
alias grst="git reset"
 | 
					alias grst="git reset"
 | 
				
			||||||
alias gundo="git reset @~1"
 | 
					alias gundo="git reset @~1"
 | 
				
			||||||
alias gclean="git clean"
 | 
					alias gclean="git clean"
 | 
				
			||||||
alias gbr="git branch"
 | 
					alias gbr="git branch"
 | 
				
			||||||
alias gtg="git tag"
 | 
					 | 
				
			||||||
alias gr="git remote"
 | 
					alias gr="git remote"
 | 
				
			||||||
alias grv="git remote -v"
 | 
					alias grv="git remote -v"
 | 
				
			||||||
alias gra="gr add"
 | 
					alias gra="gr add"
 | 
				
			||||||
@@ -179,11 +174,8 @@ alias gstv="gsta show -p stash@{0}"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Docker aliases
 | 
					# Docker aliases
 | 
				
			||||||
alias d=docker
 | 
					alias d=docker
 | 
				
			||||||
alias dps="docker ps --format='table {{.ID}}\t{{.Image}}\t{{.Label \"org.label-schema.version\"}}\t{{.Networks}}\t{{.RunningFor}}\t{{.Status}}\t{{.Names}}' | sed '1s/version/VERSION/'"
 | 
					alias dps='docker ps'
 | 
				
			||||||
alias dpsa="docker ps -a --format='table {{.ID}}\t{{.Image}}\t{{.Label \"org.label-schema.version\"}}\t{{.Networks}}\t{{.RunningFor}}\t{{.Status}}\t{{.Names}}' | sed '1s/version/VERSION/'"
 | 
					alias dpsa='docker ps -a'
 | 
				
			||||||
alias dnets="docker network ls -q | xargs docker inspect | jq '.[] | select(.Name != \"host\" and .Name != \"none\") | [.] | map(.Name + \"\t\" + (.IPAM.Config | map(.Subnet) | join(\"\t\")))[]' -r | sort -V -k2,3 | column -t"
 | 
					 | 
				
			||||||
daddrs() { docker inspect ${1:-bridge} | jq '.[0].Containers | map(.Name + "\t" + .IPv4Address + "\t" + .IPv6Address)[]' -r | sort -V -k2,3 | column -t; }
 | 
					 | 
				
			||||||
alias din='docker inspect'
 | 
					 | 
				
			||||||
alias drm='docker rm'
 | 
					alias drm='docker rm'
 | 
				
			||||||
alias drmi='docker rmi'
 | 
					alias drmi='docker rmi'
 | 
				
			||||||
alias dim='docker images'
 | 
					alias dim='docker images'
 | 
				
			||||||
@@ -267,14 +259,14 @@ do_dsh() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
alias dc='docker-compose'
 | 
					alias dc='docker-compose'
 | 
				
			||||||
alias dm='docker-machine'
 | 
					alias dm='docker-machine'
 | 
				
			||||||
dmc() { eval $(docker-machine env $1); }
 | 
					alias dmc='eval $(docker-machine env $1)'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ZFS aliases
 | 
					# ZFS aliases
 | 
				
			||||||
alias zfs='sudo zfs'
 | 
					alias zfs='sudo zfs'
 | 
				
			||||||
alias zpool='sudo zpool'
 | 
					alias zpool='sudo zpool'
 | 
				
			||||||
alias z=zfs
 | 
					alias z=zfs
 | 
				
			||||||
alias zp=zpool
 | 
					alias zp=zpool
 | 
				
			||||||
zl() { (set -o pipefail; command zfs list $@ | grep -Ev 'docker/[0-9a-f]{64}' | column -t -R 2,3,4); return $?; }
 | 
					zl() { (set -o pipefail; command zfs list $@ | grep -Ev 'docker/[0-9a-f]{64}'); return $?; }
 | 
				
			||||||
_zl() { _zfs "list $@"; }
 | 
					_zl() { _zfs "list $@"; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# General Aliases
 | 
					# General Aliases
 | 
				
			||||||
@@ -288,14 +280,9 @@ alias xresources="$EDITOR $XDG_CONFIG_HOME/X11/xresources ; xrdb merge $XDG_CONF
 | 
				
			|||||||
alias sshc="$EDITOR ~/.ssh/config"
 | 
					alias sshc="$EDITOR ~/.ssh/config"
 | 
				
			||||||
alias dotfiles="cd $DOTFILES"
 | 
					alias dotfiles="cd $DOTFILES"
 | 
				
			||||||
alias i3c="$EDITOR $XDG_CONFIG_HOME/i3/config ; i3-msg restart"
 | 
					alias i3c="$EDITOR $XDG_CONFIG_HOME/i3/config ; i3-msg restart"
 | 
				
			||||||
alias polybarc="$EDITOR $XDG_CONFIG_HOME/polybar/config; killall -q polybar; while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done; exec polybar -r i3bar"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
alias sf=screenfetch
 | 
					alias sf=screenfetch
 | 
				
			||||||
alias nf=neofetch
 | 
					alias nf=neofetch
 | 
				
			||||||
alias rot13="tr '[A-Za-z]' '[N-ZA-Mn-za-m]'"
 | 
					alias rot13="tr '[A-Za-z]' '[N-ZA-Mn-za-m]'"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Networking aliases
 | 
					 | 
				
			||||||
alias ipa="ip a"
 | 
					 | 
				
			||||||
alias addrs="ip a | grep inet | grep -ve fe80 -e '127\\.0\\.0\\.1/8' -e '::1/128' | sort -n | sed 's/^\\s*//'"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# vim: ft=sh
 | 
					# vim: ft=sh
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,4 +11,4 @@ xrandr --output $BOTTOM_LEFT --primary --mode 1920x1080 --pos 0x1080 --rotate no
 | 
				
			|||||||
       --output $TOP_RIGHT --mode 1920x1080 --pos 1920x0 --rotate inverted \
 | 
					       --output $TOP_RIGHT --mode 1920x1080 --pos 1920x0 --rotate inverted \
 | 
				
			||||||
       --output $BOTTOM_RIGHT --mode 1920x1080 --pos 1920x1080 --rotate normal
 | 
					       --output $BOTTOM_RIGHT --mode 1920x1080 --pos 1920x1080 --rotate normal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
feh --no-fehbg --no-xinerama --bg-fill $DOTFILES/lakesidesunrise.jpg
 | 
					feh --no-fehbg --no-xinerama --bg-fill ~/pictures/lakesidesunrise.jpg
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,4 +16,4 @@ xrandr --newmode $MODELINE 2>/dev/null || true
 | 
				
			|||||||
xrandr --addmode $OUTPUT $MODENAME 2>/dev/null || true
 | 
					xrandr --addmode $OUTPUT $MODENAME 2>/dev/null || true
 | 
				
			||||||
xrandr --output  $OUTPUT --mode $MODENAME
 | 
					xrandr --output  $OUTPUT --mode $MODENAME
 | 
				
			||||||
 | 
					
 | 
				
			||||||
feh --no-fehbg --no-xinerama --bg-fill $DOTFILES/lakesidesunrise.jpg
 | 
					feh --no-fehbg --no-xinerama --bg-fill ~/pictures/lakesidesunrise.jpg
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,3 +23,8 @@ echo cd `pwd`
 | 
				
			|||||||
for file in $conffiles; do
 | 
					for file in $conffiles; do
 | 
				
			||||||
    ln -sfv $confpath/.config/$file .
 | 
					    ln -sfv $confpath/.config/$file .
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cd $HOME
 | 
				
			||||||
 | 
					mkdir -p .local/share/ && cd .local/share
 | 
				
			||||||
 | 
					echo cd `pwd`
 | 
				
			||||||
 | 
					ln -sfv $DOTFILES/surfacetools .
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -89,8 +89,7 @@ function display() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if [ "${line[@]}" == "$update" ]; then
 | 
					    if [ "${line[@]}" == "$update" ]; then
 | 
				
			||||||
        download
 | 
					        download
 | 
				
			||||||
        display
 | 
					        exit 0
 | 
				
			||||||
        return
 | 
					 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    line=($line)
 | 
					    line=($line)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,12 +28,9 @@ function download() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    echo -n > "$FONTAWESOME_FILE"
 | 
					    echo -n > "$FONTAWESOME_FILE"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cat /usr/share/fontawesome/icons.json | \
 | 
					    curl https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/advanced-options/metadata/icons.json | \
 | 
				
			||||||
        jq -r --argfile ctgs <(yq r -j /usr/share/fontawesome/categories.yml) \
 | 
					        jq '.[] | "\\u" + .unicode + "\t" + .label' -r | \
 | 
				
			||||||
        '.[] | . as $icon | "\\\\u" + .unicode + "\t" + .label + "\t" + ( ([.search.terms,.styles,([select($ctgs[].icons[]|index($icon.label))|.label]|unique)]|add)|sort|join(", "))' | \
 | 
					        xargs -0 printf \
 | 
				
			||||||
        while IFS=$'\t' read icon name labels; do \
 | 
					 | 
				
			||||||
            printf "%b\t%-120s\t%s\n" "$icon" "$name" "$labels";\
 | 
					 | 
				
			||||||
        done \
 | 
					 | 
				
			||||||
        > "$FONTAWESOME_FILE"
 | 
					        > "$FONTAWESOME_FILE"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    notify "$(basename "$0")" "We're all set!"
 | 
					    notify "$(basename "$0")" "We're all set!"
 | 
				
			||||||
@@ -65,8 +62,7 @@ function display() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if [ "${line[@]}" == "$update" ]; then
 | 
					    if [ "${line[@]}" == "$update" ]; then
 | 
				
			||||||
        download
 | 
					        download
 | 
				
			||||||
        display
 | 
					        exit 0
 | 
				
			||||||
        return
 | 
					 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #IFS=$'\t'
 | 
					    #IFS=$'\t'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ NOTIFY_APPNAME="$(basename "$0")"
 | 
				
			|||||||
NOTIFY_ICONPATH="/usr/share/icons/Xenlism-Wildfire/Apps/screenshot.svg"
 | 
					NOTIFY_ICONPATH="/usr/share/icons/Xenlism-Wildfire/Apps/screenshot.svg"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SCROT_CMD="maim -m 10 -us %"
 | 
					SCROT_CMD="maim -m 10 -us %"
 | 
				
			||||||
FILENAME="$(date '+%s%N' | sha256sum | head -c7).png"
 | 
					FILENAME=`date "+$NOTIFY_APPNAME-%Y-%m-%d-%H%M%S.png"`
 | 
				
			||||||
DIRECTORY="$HOME/pictures/screenshots"
 | 
					DIRECTORY="$HOME/pictures/screenshots"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SCP_HOST=frebib@Poseidon.nerdhouse.io
 | 
					SCP_HOST=frebib@Poseidon.nerdhouse.io
 | 
				
			||||||
@@ -40,7 +40,7 @@ fi
 | 
				
			|||||||
notif_id=$(send_notification "Screenshot uploading" "$FILENAME<br><br>The image is available in the clipboard immediately" || true)
 | 
					notif_id=$(send_notification "Screenshot uploading" "$FILENAME<br><br>The image is available in the clipboard immediately" || true)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Add image to clipboard
 | 
					# Add image to clipboard
 | 
				
			||||||
xclip -i "$out_path" -selection clipboard -t image/png
 | 
					xclip -i "$out_path" -selection primary -t image/png
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 'Upload' the screenshot
 | 
					# 'Upload' the screenshot
 | 
				
			||||||
if ! error=$(scp -C $out_path $SCP_HOST:$SCP_PATH 2>&1); then
 | 
					if ! error=$(scp -C $out_path $SCP_HOST:$SCP_PATH 2>&1); then
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								surface-scripts
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								surface-scripts
									
									
									
									
									
										Submodule
									
								
							 Submodule surface-scripts added at f94e25f0b8
									
								
							
							
								
								
									
										1
									
								
								surface3-scripts
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								surface3-scripts
									
									
									
									
									
										Submodule
									
								
							 Submodule surface3-scripts added at bd6eaf1fb0
									
								
							
		Reference in New Issue
	
	Block a user