commit c2f64482affb5a839453854eef9ae9c486e69b30
parent 70c8effff4af06af3a48aba32bf72a960727dd45
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 17 Dec 2018 13:34:47 +0100
Clean-up X/i3 startup configuration
Diffstat:
4 files changed, 16 insertions(+), 89 deletions(-)
diff --git a/links/.Xmodmap b/links/.Xmodmap
@@ -15,4 +15,4 @@
!add mod4 = Alt_R
! Reverse scroll
-pointer = 1 2 3 5 4 7 6 8 9 10 11 12
+!pointer = 1 2 3 5 4 7 6 8 9 10 11 12
diff --git a/links/.config/i3/config b/links/.config/i3/config
@@ -235,5 +235,7 @@ exec --no-startup-id eval "$(gpg-agent)"
exec --no-startup-id eval "$(ssh-agent)"
exec --no-startup-id eval "ssh-add"
exec --no-startup-id unclutter
+exec --no-startup-id dunst
+exec --no-startup-id compton
#exec --no-startup-id xcompmgr
exec --no-startup-id i3-msg 'workspace 2; exec firefox; sleep 2; layout tabbed; workspace 1; exec st -e tmux-utility.sh'
diff --git a/links/.config/i3/i3scripts/i3mem b/links/.config/i3/i3scripts/i3mem
@@ -1,9 +1,9 @@
#!/bin/sh
case $BLOCK_BUTTON in
- 1) notify-send "<b>🧠Memory hogs:</b>
+ 1) notify-send "<b>Memory hogs:</b>
$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
- 3) notify-send "<b>🧠Memory module:</b>
+ 3) notify-send "<b>Memory module:</b>
- Shows Memory Used/Total.
- Click to show memory hogs." ;;
esac
diff --git a/links/.xinitrc b/links/.xinitrc
@@ -1,33 +1,10 @@
#!/bin/sh
-HOSTNAME=`hostname`
-
-# Disable beeps
-xset -b
-
-# Normal cursor
+# Set normal cursor
xsetroot -cursor_name left_ptr &
# Set background color
-#xsetroot -solid '#222222' &
-#hsetroot -cover ~/wallpapers/blue-gradient.jpg
-#hsetroot -tile ~/wallpapers/solarized-pattern.png
-#hsetroot -fill ~/wallpapers/fall.jpg # single screen
$HOME/bin/wallpaper.sh
-#if [ "$HOSTNAME" = "iddqd" ]
-#then
- #hsetroot -fill ~/wallpapers/octahedron-bg-gimp-double.png # dual screen
- #hsetroot -fill ~/wallpapers/octahedron-bg-gimp.png # single screen
- #hsetroot -fill ~/wallpapers/fall.jpg # single screen
-#else
- #hsetroot -cover ~/wallpapers/octahedron-bg-gimp.png
-#fi
-
-# Hide mouse on inactivity. unclutter messes up i3lock
-#unclutter -grab -noevents -root &
-
-# Add shadows
-compton &
# Set display color profile
#[ -f ~/doc/colorprofile.icc ] && xcalib ~/doc/colorprofile.icc
@@ -38,49 +15,12 @@ compton &
# X settings
xrdb ~/.Xresources
-# screen powersave
-xset +dpms # Energy Star features on
-xset dpms 300 600 900 # standby -> suspend -> off (seconds)
-
-# mouse acceleration (xset m <acceleration> <threshold>)
-xset m 1/4 0
-#xset m 2/1 4
-
-# Set dim LCD brightness
-#xbacklight -set 30 &
-
-# Load local fonts
-xset +fp ~/.fonts
-xset +fp /usr/share/fonts/local
-xset fp rehash
-#fc-cache
-#fc-cache -fv
-
-# Notification deamon
-dunst &
-
-# Bluetooth applet
-#blueman-applet &
-
-#if [ "$HOSTNAME" == "iddqd" ]; then
- #gnome-settings-daemon & # handles themes, starts gnome-screensaver. You may have to use gconf to disable it setting the background.
-#fi
-#nm-applet & # assuming you're using Network Manager
-#pidgin & # if you're using pidgin. You can really put any programs here.
-#gnome-power-manager & # for laptops and stuff
-#gnome-volume-manager & # for mounting CDs, USB sticks, and such
-#eval `gnome-keyring-daemon --start --components=secrets` # possible components: gpg,pkcs11,secrets,ssh
+# Start auth deamons
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export GPG_AGENT_INFO SSH_AUTH_SOCK
eval $(ssh-agent)
-# Enable tap-to-click on touchpad
-#synclient TapButton1=1 TapButton2=2 TapButton3=3
-
# Automatically suspend system after 20 mins of inactivity
-#xautolock -time 20 -locker "sudo pm-suspend" &
-# Automatically lock the screen after 10 mins of inactivity
-#xautolock -time 10 -locker "i3lock -c 1d1f21 && sleep 30; sudo pm-suspend" &
xautolock -time 10 -locker $HOME/bin/xlock &
# Read .Xmodmap for modified keys
@@ -90,39 +30,24 @@ setxkbmap -option ctrl:nocaps
# Read .xbindkeysrc for special key-bindings
xbindkeys
-# cloud clients
-#owncloud &
-#seafile-applet &
-
# Setup two monitors at iddqd
-if [ "$HOSTNAME" = "iddqd" ]; then
-
+if [ "$(hostname)" = "iddqd" ]; then
xrandr --output DVI-D-0 --primary
xrandr --output DP-1 --auto --left-of DVI-D-0
fi
-#if [ "$HOSTNAME" != "phony" ]; then
- #redshift -l 56.09:10.12 & # Aarhus
+if [ "$(hostname)" != "phony" ]; then
+ redshift -l 56.09:10.12 & # Aarhus
#redshift -l 32.84:-117.26 & # San Diego
-#fi
-
-# Start screensaver daemon
-#/usr/bin/xscreensaver -no-splash &
-
-# Typing breaks (optionally add +lock)
-#xwrits breaktime=5:00 typetime=55:00 +clock +breakclock +mouse &
-xset dpms 300 600 900
+fi
# Automatic display configuration script
nohup bash ~/code/dotfiles/bin/xrandr-auto.sh &
-#if [ "$HOSTNAME" == "flaptop" ]; then
- #xrandr --dpi 135
-#fi
+xset -b # Disable beeps
+xset +dpms # Energy Star features on
+xset dpms 300 600 900 # standby -> suspend -> off (seconds)
+xset m 1/4 0 # mouse acceleration (xset m <acceleration> <threshold>)
+xset r rate 150 30 # Increase key repeat rate
exec i3
-#exec herbstluftwm --locked
-#exec gnome-session
-
-#sxhkd &
-#exec bspwm