summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2019-05-27 22:32:06 -0500
committerDanny Holman <dholman@gymli.org>2019-05-27 22:32:06 -0500
commit48ea632e741dcd831df456fca993e33b47a81aa9 (patch)
treeab421b5afca9fadbf6137571b0fa85076df1a8d6 /.config
parent5f975aa0048ba90db79f7af29439207dd00a45ec (diff)
General updates
General updates to things due to package differences since last update.
Diffstat (limited to '.config')
-rw-r--r--.config/i3/config82
-rw-r--r--.config/polybar/config148
2 files changed, 77 insertions, 153 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 44edc4d..4d53a3e 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -1,69 +1,34 @@
-# This file has been auto-generated by i3-config-wizard(1).
-# It will not be overwritten, so edit it as you like.
-#
-# Should you change your keyboard layout some time, delete
-# this file and re-run i3-config-wizard(1).
-#
-
-# i3 config file (v4)
-#
-# Please see http://i3wm.org/docs/userguide.html for a complete reference!
+# Danny's i3 config
set $mod Mod4
-# Font for window titles. Will also be used by the bar unless a different font
-# is used in the bar {} block below.
-#font pango:monospace 8
-
-# This font is widely installed, provides lots of unicode glyphs, right-to-left
-# text rendering and scalability on retina/hidpi displays (thanks to pango).
-#font pango:DejaVu Sans Mono 8
-
-# Before i3 v4.8, we used to recommend this one as the default:
-# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
-# The font above is very space-efficient, that is, it looks good, sharp and
-# clear in small sizes. However, its unicode glyph coverage is limited, the old
-# X core fonts rendering does not support right-to-left and this being a bitmap
-# font, it doesn’t scale on retina/hidpi displays.
-
-# My font
+# Default font
font pango:xos4 Terminus 12
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
-# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
-
-# kill focused window
bindsym $mod+Shift+q kill
+bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
-# start dmenu (a program launcher)
-# bindsym $mod+d exec dmenu
-# There also is the (new) i3-dmenu-desktop which only displays applications
-# shipping a .desktop file. It is a wrapper around dmenu, so you need that
-# installed.
- bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
-
-# alternatively, you can use the cursor keys:
+# Focus windows
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
-# alternatively, you can use the cursor keys:
+# Move windows
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
-# split in horizontal orientation
+# Split horizontal/vertical
bindsym $mod+h split h
-
-# split in vertical orientation
bindsym $mod+v split v
-# enter fullscreen mode for the focused container
+# Fullscreen toggle
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
@@ -80,9 +45,6 @@ bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
-# focus the child container
-#bindsym $mod+d focus child
-
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
@@ -111,8 +73,6 @@ bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
-# exit i3 (logs you out of your X session)
-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'"
# resize window (you can also use the mouse for that)
mode "resize" {
@@ -138,6 +98,7 @@ mode "resize" {
bindsym Escape mode "default"
}
+# logout, lock screen, etc.
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id xautolock -locknow, mode "default"
@@ -161,35 +122,26 @@ bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%-
bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10%
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10%
-bindsym $mod+Print exec --no-startup-id gnome-screenshot
-bindsym $mod+Shift+p exec --no-startup-id gnome-screenshot -w
+bindsym $mod+Print exec --no-startup-id scrot
bindsym $mod+Shift+s mode "$mode_system"
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
-# Colors
-set $bg-color #2f343f
-set $inactive-bg-color #2f343f
-set $text-color #f3f3f5
-set $inactive-text-color #676e7d
-set $urgent-bg-color #e53935
-
# Gap stuff
-#hide_edge_borders both
-#new_window 1pixel
-#gaps inner 15
-#gaps outer 15
-
-# Make displays nice
-#exec --no-startup-id xrandr --output HDMI-0 --mode 1920x1080 --output DVI-I-0 --right-of HDMI-0
+hide_edge_borders both
+new_window 1pixel
+gaps inner 15
+gaps outer 15
# Start helpful programs
exec --no-startup-id wal -i "$HOME/Pictures/wal/"
-exec --no-startup-id polybar -r main0
exec --no-startup-id redshift
exec --no-startup-id xautolock -time 5 -locker "i3lock -c 000000"
-exec --no-startup-id nitrogen --restore
exec --no-startup-id compton
+exec --no-startup-id tilda
+exec --no-startup-id polybar -r main0
+exec --no-startup-id polybar -r main1
+exec --no-startup-id polybar -r main2
exec --no-startup-id dex -a
# Play nice with Steam windows
diff --git a/.config/polybar/config b/.config/polybar/config
index edb9e87..dcc032a 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -1,4 +1,4 @@
-; Skillet's polybar config
+; Danny's Polybar config
[colors]
peach = #FFCD98
@@ -34,8 +34,8 @@ margin-top = 5
margin-bottom = 5
[bar/main0]
-;monitor = ${env:MONITOR:HDMI-0}
-monitor = ${env:MONITOR:eDP1}
+monitor = ${env:MONITOR:HDMI-0}
+;monitor = ${env:MONITOR:eDP1}
width = 100%
height = 27
bottom = false
@@ -47,7 +47,7 @@ foreground = ${colors.xcolor1}
overline-size = 0
overline-color = ${colors.xcolor7}
-underline-size = 0
+underline-size = 2
underline-color = ${colors.xcolor7}
border-bottom-size = 0
@@ -77,20 +77,22 @@ tray-transparent = false
tray-background = ${colors.xcolor7}
; Module layouts
-modules-left = RightArrow2 i3 RightArrow1 RightStripe RightArrow1
-modules-center =
-modules-right = arrow1 LeftStripe arrow1 filesystem arrow2 volume arrow3 cpu arrow2 memory
+modules-left = RightArrow2 i3 xwindow RightArrow1 RightStripe RightArrow1
+modules-center = RightStripe date LeftStripe
+modules-right = arrow1 LeftStripe arrow1 filesystem arrow2 alsa arrow3 cpu arrow2 memory arrow3 updates
[bar/main1]
inherit = bar/main0
monitor = ${env:MONITOR:DVI-I-1}
tray-position = none
+modules-left = i3 xwindow RightArrow1 RightStripe RightArrow1
[bar/main2]
inherit = bar/main0
-monitor = ${env:MONITOR:HDMI-1-2}
+monitor = ${env:MONITOR:DP-0}
tray-position = none
+modules-left = i3 xwindow RightArrow1 RightStripe RightArrow1
; Modules
@@ -100,24 +102,39 @@ interval = 25
fixed-values = true
mount-0 = /
-;mount-1 = /home
+mount-1 = /mnt/fileserver
-format-mounted = RootFS <label-mounted>
+format-mounted = <label-mounted>
format-mounted-foreground = ${colors.xcolor7}
format-mounted-background = ${colors.xcolor1}
-;  
-label-mounted = "  %percentage_used%%"
+label-mounted = "%mountpoint%: %percentage_used%%"
; %free%% %percentage_used%% %used%
label-mounted-foreground = ${colors.xcolor7}
label-mounted-background = ${colors.xcolor1}
-label-unmounted =   %mountpoint%
+label-unmounted = %mountpoint%
label-unmounted-foreground = ${colors.xcolor7}
label-unmounted-background = ${colors.xcolor1}
+[module/alsa]
+type = internal/alsa
+
+master-soundcard = default
+master-mixer = Master
+
+format-volume = <label-volume>
+format-muted = <label-muted>
+label-volume = VOL %percentage%%
+label-muted = MUTED
+
+format-volume-foreground = ${colors.xcolor1}
+format-volume-background = ${colors.xcolor7}
+format-muted-foreground = ${colors.xcolor1}
+format-muted-background = ${colors.xcolor7}
+
[module/i3]
type = internal/i3
-format = <label-state> <label-mode>
+format = <label-state><label-mode>
index-sort = true
wrapping-scroll = false
pin-workspaces = true
@@ -132,7 +149,7 @@ label-focused-font = 3
label-unfocused = %index%
label-unfocused-padding = 2
label-unfocused-foreground = ${colors.xcolor7}
-label-unfocused-background = ${colors.xcolor0}
+label-unfocused-background = ${colors.xcolor1}
label-occupied = %index%
label-occupied-foreground = ${colors.xcolor0}
label-occupied-background = ${colors.xcolor1}
@@ -152,12 +169,17 @@ label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
+label-mode-foreground = ${colors.xcolor7}
+label-mode-background = ${colors.xcolor1}
[module/xwindow]
type = internal/xwindow
-format-foreground = ${colors.xcolor1}
-format-background = ${colors.xcolor0}
+format-foreground = ${colors.xcolor7}
+format-background = ${colors.xcolor1}
+format-padding = 2
+label = %title%
+label-maxlen = 25
[module/xbacklight]
type = internal/xbacklight
@@ -184,7 +206,7 @@ card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
-format-prefix = " "
+format-prefix =
format-foreground = ${colors.xcolor7}
format-background = ${colors.xcolor1}
label = CPU %percentage%%
@@ -192,7 +214,7 @@ label = CPU %percentage%%
[module/memory]
type = internal/memory
interval = 2
-format-prefix = " "
+format-prefix =
format-foreground = ${colors.xcolor1}
format-background = ${colors.xcolor7}
format-margin-top = -5
@@ -203,62 +225,18 @@ label = MEM %percentage_used%%
type = internal/date
interval = 1
-date = " %Y/%m/%d"
-date-alt = " %Y-%m-%d"
+date = "%Y/%m/%d"
+date-alt = "%Y-%m-%d"
time = %H:%M
time-alt = " %I:%M:%S %p"
format-foreground = ${colors.xcolor7}
format-background = ${colors.xcolor1}
+format-padding = 2
label = %date% %time%
-[module/volume]
-type = internal/volume
-
-master-soundcard = default
-speaker-soundcard = default
-headphone-soundcard = default
-mapping = true
-
-format-volume = <label-volume>
-;     
-
-label-volume = VOL %percentage%
-label-volume-foreground = ${colors.xcolor1}
-label-volume-background = ${colors.xcolor7}
-label-muted = "  muted"
-label-muted-foreground = ${colors.xcolor7}
-label-muted-background = ${colors.xcolor1}
-
-ramp-volume-0 = "  "
-ramp-volume-0-foreground = ${colors.xcolor7}
-ramp-volume-0-background = ${colors.xcolor1}
-ramp-volume-1 = "  "
-ramp-volume-1-foreground = ${colors.xcolor7}
-ramp-volume-1-background = ${colors.xcolor1}
-ramp-volume-2 = "  "
-ramp-volume-2-foreground = ${colors.xcolor7}
-ramp-volume-2-background = ${colors.xcolor1}
-ramp-volume-3 = "  "
-ramp-volume-3-foreground = ${colors.xcolor7}
-ramp-volume-3-background = ${colors.xcolor1}
-
-bar-volume-width = 10
-bar-volume-background = #495858
-bar-volume-foreground-0 = #55aa55
-bar-volume-foreground-1 = #55aa55
-bar-volume-foreground-2 = #55aa55
-bar-volume-foreground-3 = #55aa55
-bar-volume-foreground-4 = #55aa55
-bar-volume-foreground-5 = #f5a70a
-bar-volume-foreground-6 = #ff5555
-bar-volume-gradient = true
-bar-volume-indicator = "|"
-bar-volume-fill = ─
-bar-volume-empty = ─
-
[module/battery]
type = internal/battery
; To list battery & adapter: $ ls -1 /sys/class/power_supply/
@@ -266,7 +244,7 @@ battery = BAT0
adapter = AC0
full-at = 99
-format-charging = <animation-charging> <label-charging>
+format-charging = <label-charging>
format-charging-foreground = ${colors.xcolor7}
format-charging-background = ${colors.xcolor1}
format-discharging = <ramp-capacity> <label-discharging>
@@ -276,24 +254,12 @@ format-full = <label-full>
format-full-foreground = ${colors.xcolor7}
format-full-background = ${colors.xcolor1}
-label-charging = "%percentage%% "
-label-discharging = "%percentage%% "
+label-charging = "BAT %percentage%%"
+label-discharging = "BAT %percentage%%"
label-discharging-foreground = ${colors.xcolor7}
-label-full = "  %percentage%% "
-; 
-ramp-capacity-0 = " "
-ramp-capacity-0-foreground = ${colors.xcolor4}
-ramp-capacity-1 = " "
-ramp-capacity-1-foreground = ${colors.xcolor4}
-ramp-capacity-2 = " "
-ramp-capacity-3 = " "
-ramp-capacity-4 = " "
-animation-charging-0 = " "
-animation-charging-1 = " "
-animation-charging-2 = " "
-animation-charging-3 = " "
-animation-charging-4 = " "
-animation-charging-framerate = 750
+label-full = "Battery Full"
+
+; Powerline
[module/pipe]
type = custom/text
@@ -362,9 +328,15 @@ content = "◢"
content-foreground = ${colors.xcolor0}
content-background = ${colors.xcolor1}
+[module/updates]
+type = custom/script
+exec = pacman -Qu | wc -l
+format = <label>
+format-foreground = ${colors.xcolor7}
+format-background = ${colors.xcolor1}
+format-padding = 1
+label = Updates: %output%
+interval = 90
+
[settings]
screenchange-reload = true
-;compositing-background = xor
-;compositing-background = screen
-;compositing-foreground = source
-;compositing-border = over