From: Andrew Lorimer Date: Fri, 14 Aug 2020 01:56:15 +0000 (+1000) Subject: general updates X-Git-Url: https://git.lorimer.id.au/dotfiles.git/diff_plain/dc6869f287700ac7e2d7afa455f3435d3182ffd1 general updates --- diff --git a/compton/.compton.conf b/compton/.compton.conf index 8e23699..73a03f0 100644 --- a/compton/.compton.conf +++ b/compton/.compton.conf @@ -47,7 +47,8 @@ glx-copy-from-front = false; # Useless with --glx-use-copysubbuffermesa. # Partially breaks --resize-damage. # Defaults to undefined. -glx-swap-method = "undefined"; +#glx-swap-method = "undefined"; +use-damage = true; ################################# # @@ -116,7 +117,7 @@ inactive-opacity = 1; active-opacity = 1; frame-opacity = 1; inactive-opacity-override = false; -alpha-step = 0.06; +#alpha-step = 0.06; # Dim inactive windows. (0.0 - 1.0) # inactive-dim = 0.2; @@ -192,12 +193,12 @@ vsync = "opengl-swc"; # Reported to have no effect, though. dbe = false; # Painting on X Composite overlay window. Recommended. -paint-on-overlay = true; +#paint-on-overlay = true; # Limit compton to repaint at most once every 1 / refresh_rate second to boost performance. # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, # unless you wish to specify a lower refresh rate than the actual value. -sw-opti = true; +#sw-opti = true; # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. # Known to cause flickering when redirecting/unredirecting windows. diff --git a/i3/.i3/config b/i3/.i3/config index 2b56191..cc13d91 100644 --- a/i3/.i3/config +++ b/i3/.i3/config @@ -4,7 +4,7 @@ set $inactive-bg-color #2f343f set $text-color #2f343f set $inactive-text-color #839495 set $urgent-bg-color #dc322f -set $bar-color #082833cc +set $bar-color #082833bf # windows key set $mod Mod4 @@ -32,10 +32,10 @@ client.urgent $urgent-bg-color $urgent-bg-color $text-color bindsym $mod+d exec "rofi -modi drun,run -show drun -show-icons -icon-theme Numix-Circle" # change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left @@ -44,10 +44,10 @@ bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left @@ -56,11 +56,13 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # move workspace to other monitor -bindsym $mod+Control+k move workspace to output down -bindsym $mod+Control+l move workspace to output up +bindsym $mod+Control+j move workspace to output down +bindsym $mod+Control+k move workspace to output up +bindsym $mod+Control+h move workspace to output left +bindsym $mod+Control+l move workspace to output right # split in horizontal orientation -bindsym $mod+h split h +bindsym $mod+s split h # split in vertical orientation bindsym $mod+v split v @@ -69,7 +71,7 @@ bindsym $mod+v split v bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking +#bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split @@ -147,15 +149,15 @@ mode "resize" { # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt + bindsym h resize shrink width 10 px or 10 ppt + bindsym j resize grow height 10 px or 10 ppt + bindsym k resize shrink height 10 px or 10 ppt + bindsym l resize grow width 10 px or 10 ppt - bindsym Shift+j resize shrink width 1px or 1ppt - bindsym Shift+k resize grow height 1px or 1ppt - bindsym Shift+l resize shrink height 1px or 1ppt - bindsym Shift+semicolon resize grow width 1px or 1ppt + bindsym Shift+h resize shrink width 1px or 1ppt + bindsym Shift+j resize grow height 1px or 1ppt + bindsym Shift+k resize shrink height 1px or 1ppt + bindsym Shift+l resize grow width 1px or 1ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt @@ -213,28 +215,29 @@ focus_on_window_activation focus # i3bar bar { - font pango:Ubuntu Mono derivative Powerline 11 - i3bar_command i3bar -t - status_command exec i3blocks + i3bar_command i3bar -t + status_command exec i3blocks + colors { + background $bar-color + } + font pango:Ubuntu Mono derivative Powerline 11 # status_command i3status # output VGA-0 - colors { - background $bar-color - } } # borders / gaps for_window[class="^.*"] border pixel 4 -for_window[class="Tilda"] border pixel 0 gaps inner 15 gaps outer 0 # startup background services exec_always --no-startup-id xrdb /home/andrew/.Xdefaults -exec_always --no-startup-id xrandr --output HDMI-0 --pos 0x0 --output DVI-D-0 --pos 240x1080 -exec_always --no-startup-id feh --bg-fill /home/andrew/.wallpaper.jpg -exec_always --no-startup-id compton -b --config /home/andrew/.compton.conf +#exec_always --no-startup-id xrandr --output DVI-D-0 --off --output HDMI-0 --mode 2560x1440 --pos 0x181 --rotate normal --output DP-0 --off --output DP-1 --off --output HDMI-1 --mode 1920x1080 --pos 2560x0 --rotate right +#exec_always --no-startup-id xrandr --output DVI-D-1 --off --output HDMI-1 --primary --mode 2560x1440 --pos 0x240 --rotate normal --output DP-1 --off --output HDMI-2 --mode 1920x1080 --pos 2560x0 --rotate right + +exec_always --no-startup-id feh --bg-scale --no-xinerama /home/andrew/.wallpaper.jpg +exec_always --no-startup-id picom -b --config /home/andrew/.picom.conf exec_always --no-startup-id xbindkeys --poll-rc # start GUI apps diff --git a/i3/.screenlayout/layout3.sh b/i3/.screenlayout/layout3.sh new file mode 100755 index 0000000..02806bc --- /dev/null +++ b/i3/.screenlayout/layout3.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DVI-D-0 --off --output HDMI-0 --mode 2560x1440 --pos 0x181 --rotate normal --output DP-0 --off --output DP-1 --off --output HDMI-1 --mode 1920x1080 --pos 2560x0 --rotate right diff --git a/i3/.screenlayout/layout4.sh b/i3/.screenlayout/layout4.sh new file mode 100755 index 0000000..1f4ced4 --- /dev/null +++ b/i3/.screenlayout/layout4.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DVI-D-1 --off --output HDMI-1 --primary --mode 2560x1440 --pos 0x240 --rotate normal --output DP-1 --off --output HDMI-2 --mode 1920x1080 --pos 2560x0 --rotate right diff --git a/i3/.wallpaper.jpg b/i3/.wallpaper.jpg index f86d1f0..32ddc22 100644 Binary files a/i3/.wallpaper.jpg and b/i3/.wallpaper.jpg differ diff --git a/x/.xinitrc b/x/.xinitrc index e78cdd0..9712bfc 100644 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -3,4 +3,5 @@ xrdb -merge /home/andrew/.Xresources numlockx & # enable numlock on login xinput set-button-map $(xinput list --id-only 'SteelSeries SteelSeries Rival 110 Gaming Mouse') 1 2 3 4 5 6 7 0 0 +xbindkeys --poll-rc exec i3