Cleanup
This commit is contained in:
parent
811b193411
commit
035d697b0c
9 changed files with 139 additions and 551 deletions
3
.bashrc
3
.bashrc
|
@ -1,8 +1,9 @@
|
|||
#
|
||||
# ~/.bashrc
|
||||
# Author: Adam Gausmann
|
||||
# author: adam gausmann
|
||||
#
|
||||
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
|
|
|
@ -1,67 +1,43 @@
|
|||
exec --no-startup-id shopt -s huponexit
|
||||
#
|
||||
# ~/.config/i3/config
|
||||
# author: adam gausmann
|
||||
#
|
||||
|
||||
# meta keys
|
||||
set $mod Mod4
|
||||
floating_modifier $mod
|
||||
|
||||
|
||||
# appearance
|
||||
# ==========
|
||||
|
||||
# fonts
|
||||
font pango:DejaVu Sans Mono 8
|
||||
bindsym $mod+Return exec gnome-terminal
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
# gaps
|
||||
for_window [class="^.*"] border pixel 0
|
||||
gaps inner 12
|
||||
|
||||
bindsym $mod+d exec dmenu_run
|
||||
bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
# behavior
|
||||
# ========
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
# session cleanup
|
||||
exec --no-startup-id shopt -s huponexit
|
||||
|
||||
# move focused window
|
||||
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
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
# navigation
|
||||
# ==========
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+b split h
|
||||
bindsym $mod+j focus left
|
||||
bindsym $mod+k focus down
|
||||
bindsym $mod+l focus up
|
||||
bindsym $mod+colon focus right
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
bindsym $mod+space focus mode_toggle
|
||||
bindsym $mod+a focus parent
|
||||
bindsym $mod+Shift+a focus child
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number 1
|
||||
bindsym $mod+2 workspace number 2
|
||||
bindsym $mod+3 workspace number 3
|
||||
|
@ -73,7 +49,20 @@ bindsym $mod+8 workspace number 8
|
|||
bindsym $mod+9 workspace number 9
|
||||
bindsym $mod+0 workspace number 10
|
||||
|
||||
# move focused container to workspace
|
||||
focus_follows_mouse no
|
||||
|
||||
|
||||
# layout
|
||||
# ======
|
||||
|
||||
bindsym $mod+Shift+j move left
|
||||
bindsym $mod+Shift+k move down
|
||||
bindsym $mod+Shift+l move up
|
||||
bindsym $mod+Shift+colon move right
|
||||
|
||||
bindsym $mod+f fullscreen toggle
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
bindsym $mod+Shift+1 move container to workspace number 1
|
||||
bindsym $mod+Shift+2 move container to workspace number 2
|
||||
bindsym $mod+Shift+3 move container to workspace number 3
|
||||
|
@ -85,36 +74,24 @@ bindsym $mod+Shift+8 move container to workspace number 8
|
|||
bindsym $mod+Shift+9 move container to workspace number 9
|
||||
bindsym $mod+Shift+0 move container to workspace number 10
|
||||
|
||||
# rename workspace
|
||||
bindsym $mod+Shift+n exec i3-input -F 'rename workspace to "%s"' -P 'New workspace name: '
|
||||
bindsym $mod+b split h
|
||||
bindsym $mod+v split v
|
||||
|
||||
# reload the configuration file
|
||||
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'"
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
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 colon resize grow width 10 px or 10 ppt
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# 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 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 100 px or 100 ppt
|
||||
bindsym Shift+k resize grow height 100 px or 100 ppt
|
||||
bindsym Shift+l resize shrink height 100 px or 100 ppt
|
||||
bindsym Shift+colon resize grow width 100 px or 100 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
@ -122,33 +99,38 @@ mode "resize" {
|
|||
bindsym $mod+r mode "resize"
|
||||
|
||||
|
||||
# Multimedia keys
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -10%
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +10%
|
||||
# management
|
||||
# ==========
|
||||
|
||||
# Network management
|
||||
bindsym $mod+n exec networkmanager_dmenu
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+r restart
|
||||
bindsym $mod+Shift+e exit
|
||||
|
||||
# Redshift
|
||||
exec --no-startup-id redshift
|
||||
# Background
|
||||
exec --no-startup-id nitrogen --restore &
|
||||
|
||||
# Lock script
|
||||
bindsym $mod+Shift+p exec --no-startup-id /home/adam/bin/lock.sh
|
||||
# programs
|
||||
# ========
|
||||
|
||||
# GSD/GPM Backend
|
||||
exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings
|
||||
exec_always --no-startup-id gnome-power-manager
|
||||
bindsym $mod+Return exec --no-startup-id ~/.local/bin/i3/terminal
|
||||
bindsym $mod+d exec --no-startup-id ~/.local/bin/i3/menu
|
||||
bindsym $mod+Shift+p exec --no-startup-id ~/.local/bin/i3/lock
|
||||
bindsym XF86AudioMute exec --no-startup-id ~/.local/bin/i3/vol_mute
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.local/bin/i3/vol_down
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.local/bin/i3/vol_up
|
||||
|
||||
# Automount
|
||||
|
||||
# autostart
|
||||
# =========
|
||||
|
||||
# host-specific init
|
||||
exec --no-startup-id ~/.local/bin/i3/autostart
|
||||
|
||||
# automount
|
||||
exec --no-startup-id udiskie &
|
||||
|
||||
# Notification Handler
|
||||
# bar and notifications
|
||||
exec --no-startup-id twmnd &
|
||||
|
||||
# Bar
|
||||
exec_always --no-startup-id /home/adam/bin/polybar.sh
|
||||
|
||||
focus_follows_mouse no
|
||||
# appearance
|
||||
exec --no-startup-id compton -b
|
||||
exec --no-startup-id nitrogen --restore &
|
||||
|
|
|
@ -1,80 +0,0 @@
|
|||
# i3status configuration file.
|
||||
# see "man i3status" for documentation.
|
||||
|
||||
# It is important that this file is edited as UTF-8.
|
||||
# The following line should contain a sharp s:
|
||||
# ß
|
||||
# If the above line is not correctly displayed, fix your editor first!
|
||||
|
||||
general {
|
||||
colors = true
|
||||
interval = 5
|
||||
}
|
||||
|
||||
#order += "ipv6"
|
||||
#order += "disk /"
|
||||
#order += "run_watch DHCP"
|
||||
order += "wireless wlp2s0"
|
||||
order += "ethernet enp3s0f1"
|
||||
order += "ethernet endock0"
|
||||
order += "path_exists VPN"
|
||||
order += "volume master"
|
||||
order += "battery 0"
|
||||
order += "cpu_usage"
|
||||
order += "tztime local"
|
||||
|
||||
wireless wlp2s0 {
|
||||
format_up = "WLAN %ip at %essid (%quality)"
|
||||
format_down = ""
|
||||
}
|
||||
|
||||
ethernet enp3s0f1 {
|
||||
# if you use %speed, i3status requires root privileges
|
||||
format_up = "ETH %ip"
|
||||
format_down = ""
|
||||
}
|
||||
|
||||
ethernet endock0 {
|
||||
format_up = "DOCK %ip"
|
||||
format_down = ""
|
||||
}
|
||||
|
||||
battery 0 {
|
||||
last_full_capacity = true
|
||||
hide_seconds = true
|
||||
integer_battery_capacity = true
|
||||
format = "%status %percentage %remaining"
|
||||
path = "/sys/class/power_supply/BAT1/uevent"
|
||||
}
|
||||
|
||||
run_watch DHCP {
|
||||
pidfile = "/var/run/dhclient*.pid"
|
||||
}
|
||||
|
||||
path_exists VPN {
|
||||
path = "/proc/sys/net/ipv4/conf/tun0"
|
||||
format = "VPN up"
|
||||
format_down = ""
|
||||
}
|
||||
|
||||
tztime local {
|
||||
format = "%Y-%m-%d %H:%M"
|
||||
}
|
||||
|
||||
load {
|
||||
format = "AVG %1min"
|
||||
}
|
||||
|
||||
cpu_usage {
|
||||
format = "CPU %usage"
|
||||
}
|
||||
|
||||
disk "/" {
|
||||
format = "%avail"
|
||||
}
|
||||
|
||||
volume master {
|
||||
device = "pulse"
|
||||
format = "VOL %volume"
|
||||
format_muted = "MUT %volume"
|
||||
}
|
|
@ -1,341 +0,0 @@
|
|||
;=====================================================
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/jaagr/polybar
|
||||
;
|
||||
; The README contains alot of information
|
||||
;
|
||||
;=====================================================
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = #222
|
||||
background-alt = #444
|
||||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = #dfdfdf
|
||||
foreground-alt = #555
|
||||
primary = #ffb52a
|
||||
secondary = #e60053
|
||||
alert = #bd2c40
|
||||
|
||||
[bar/primary]
|
||||
monitor = ${env:MONITOR:eDP-1}
|
||||
width = 100%
|
||||
height = 27
|
||||
;offset-x = 1%
|
||||
;offset-y = 100%
|
||||
radius = 6.0
|
||||
fixed-center = false
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 4
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = fixed:pixelsize=10;1
|
||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||
font-2 = Wuncon Siji:pixelsize=10;1
|
||||
font-3 = Font Awesome 5 Free:style=Regular:pixelsize=10:antialias=false;0
|
||||
|
||||
modules-left = i3
|
||||
modules-center = mpd
|
||||
modules-right = filesystem volume memory cpu wlan eth battery temperature date redshift powermenu
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
;tray-transparent = true
|
||||
;tray-background = #0063ff
|
||||
|
||||
wm-restack = i3
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
;scroll-up = i3wm-wsnext
|
||||
;scroll-down = i3wm-wsprev
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
bottom = true
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:30:...%
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-prefix-underline = ${colors.secondary}
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.secondary}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
index-sort = true
|
||||
wrapping-scroll = false
|
||||
|
||||
; Only show workspaces on the same output as the bar
|
||||
;pin-workspaces = true
|
||||
|
||||
label-mode-padding = 2
|
||||
label-mode-foreground = #000
|
||||
label-mode-background = ${colors.primary}
|
||||
|
||||
; focused = Active workspace on focused monitor
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline = ${colors.primary}
|
||||
label-focused-padding = 2
|
||||
|
||||
; unfocused = Inactive workspace on any monitor
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = 2
|
||||
|
||||
; visible = Active workspace on unfocused monitor
|
||||
label-visible = %index%
|
||||
label-visible-background = ${self.label-focused-background}
|
||||
label-visible-underline = ${self.label-focused-underline}
|
||||
label-visible-padding = ${self.label-focused-padding}
|
||||
|
||||
; urgent = Workspace with urgency hint set
|
||||
label-urgent = %index%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
||||
|
||||
icon-prev =
|
||||
icon-stop =
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-next =
|
||||
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage:2%%
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #4bffdc
|
||||
label = %percentage_used%%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
format-connected-underline = #9f78e1
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface = enp3s0f1
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = %local_ip%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 5
|
||||
|
||||
date =
|
||||
date-alt = " %Y-%m-%d"
|
||||
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
|
||||
format-prefix =
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #0a6cf5
|
||||
|
||||
label = %date% %time%
|
||||
|
||||
[module/volume]
|
||||
type = internal/volume
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = VOL
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
|
||||
bar-volume-width = 10
|
||||
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 = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT1
|
||||
adapter = ACAD
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp> <label>
|
||||
format-underline = #f50a4d
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature%
|
||||
label-warn = %temperature%
|
||||
label-warn-foreground = ${colors.secondary}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = true
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
label-open =
|
||||
label-open-foreground = ${colors.secondary}
|
||||
label-close = cancel
|
||||
label-close-foreground = ${colors.secondary}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
|
||||
menu-0-0 = reboot
|
||||
menu-0-0-exec = menu-open-1
|
||||
menu-0-1 = power off
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
menu-1-0 = cancel
|
||||
menu-1-0-exec = menu-open-0
|
||||
menu-1-1 = reboot
|
||||
menu-1-1-exec = sudo reboot
|
||||
|
||||
menu-2-0 = power off
|
||||
menu-2-0-exec = sudo poweroff
|
||||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
; Custom modules
|
||||
|
||||
[module/redshift]
|
||||
type = custom/script
|
||||
interval = 5
|
||||
|
||||
exec = ~/.config/polybar/redshift.sh
|
||||
click-left = pkill -USR1 redshift
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
;compositing-background = screen
|
||||
;compositing-foreground = source
|
||||
;compositing-border = over
|
||||
|
||||
[global/wm]
|
||||
margin-top = 5
|
||||
margin-bottom = 5
|
||||
|
||||
; vim:ft=dosini
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Specifying the icon(s) in the script
|
||||
# This allows us to change its appearance conditionally
|
||||
icon=""
|
||||
|
||||
pgrep -x redshift &> /dev/null
|
||||
if [[ $? -eq 0 ]]; then
|
||||
temp=$(redshift -p 2>/dev/null | grep temp | cut -d' ' -f3)
|
||||
temp=${temp//K/}
|
||||
fi
|
||||
|
||||
# OPTIONAL: Append ' ${temp}K' after $icon
|
||||
if [[ -z $temp ]]; then
|
||||
echo "%{F#65737E}$icon" # Greyed out (not running)
|
||||
elif [[ $temp -ge 5000 ]]; then
|
||||
echo "%{F#8FA1B3}$icon" # Blue
|
||||
elif [[ $temp -ge 4000 ]]; then
|
||||
echo "%{F#EBCB8B}$icon" # Yellow
|
||||
else
|
||||
echo "%{F#D08770}$icon" # Orange
|
||||
fi
|
2
.gdbinit
2
.gdbinit
|
@ -1 +1 @@
|
|||
set disassembly-flavor intel
|
||||
s##:et disassembly-flavor intel
|
||||
|
|
19
.nanorc
19
.nanorc
|
@ -1,18 +1,19 @@
|
|||
#
|
||||
# ~/.nanorc
|
||||
# Author: Adam Gausmann
|
||||
# author: adam gausmann
|
||||
#
|
||||
|
||||
## Use 4-space tabsize
|
||||
set tabsize 4
|
||||
set tabstospaces
|
||||
|
||||
## Don't display the helpful shortcut lists at the bottom of the screen.
|
||||
# appearance
|
||||
# ==========
|
||||
|
||||
set nohelp
|
||||
|
||||
## Don't wrap text at all.
|
||||
set nowrap
|
||||
|
||||
## Enable smooth line scrolling
|
||||
set smooth
|
||||
|
||||
|
||||
# indentation
|
||||
# ===========
|
||||
|
||||
set tabsize 4
|
||||
set tabstospaces
|
||||
|
|
17
.tmux.conf
17
.tmux.conf
|
@ -1,11 +1,26 @@
|
|||
#
|
||||
# ~/.tmux.conf
|
||||
# Author: Adam Gausmann
|
||||
# author: adam gausmann
|
||||
#
|
||||
|
||||
|
||||
# appearance
|
||||
# ==========
|
||||
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
set -g status-bg cyan
|
||||
set -g status-fg black
|
||||
set -g pane-active-border-fg cyan
|
||||
|
||||
# rebinds
|
||||
# =======
|
||||
|
||||
# navigation
|
||||
bind -n M-j select-pane -L
|
||||
bind -n M-k select-pane -D
|
||||
bind -n M-l select-pane -U
|
||||
bind -n M-\; select-pane -R
|
||||
|
||||
# nesting
|
||||
bind-key b send-prefix
|
||||
|
|
32
.vimrc
Normal file
32
.vimrc
Normal file
|
@ -0,0 +1,32 @@
|
|||
"
|
||||
" ~/.vimrc
|
||||
" author: adam gausmann
|
||||
"
|
||||
|
||||
|
||||
" appearance
|
||||
" =========
|
||||
|
||||
set number
|
||||
set showcmd
|
||||
set incsearch
|
||||
set hlsearch
|
||||
|
||||
|
||||
" rebinds
|
||||
" ==========
|
||||
|
||||
noremap ; l
|
||||
noremap l k
|
||||
noremap k j
|
||||
noremap j h
|
||||
inoremap jk <esc>
|
||||
|
||||
|
||||
" indentation
|
||||
" ===========
|
||||
|
||||
set tabstop=4
|
||||
set softtabstop=4
|
||||
set expandtab
|
||||
filetype indent on
|
Loading…
Add table
Reference in a new issue