Update action-manager, make battery-monitor.sh executable, update xmonad configs

master
Lars Vierbergen 8 years ago
parent f095dffe5b
commit 010ffda327
  1. 2
      action-manager
  2. 1
      battery-monitor.sh
  3. 2
      bridge-network.sh
  4. 4
      xmonad-session-rc
  5. 12
      xmonad.hs

@ -1 +1 @@
Subproject commit 8a899f53ea8ac4579eafd82b56907c78ba1ea169
Subproject commit 211b84f16cbb206a959bdc4f5ea88e527bcfcae4

@ -18,6 +18,7 @@ while true; do
bash -c 'echo "Battery critical, suspending"; acpi -b' | xmessage -nearmouse -file -&
sleep 5
systemctl hibernate
sleep 600 # Wait 10 minutes, so we only hibernate once
fi
sleep 10
done

@ -3,7 +3,6 @@ nmcli radio wifi off
sleep 1
rfkill unblock wlan
sleep 1
orig_iptables_forward=$(sysctl net.bridge.bridge-nf-call-iptables | tr -d ' ' || echo 'net.bridge.bridge-nf-call-iptables=1')
sysctl net.bridge.bridge-nf-call-iptables=0
ip addr flush dev $1
ip addr flush dev $2
@ -21,7 +20,6 @@ ip link set down br0
brctl delbr br0
ip link set promisc off dev $1
ip link set promisc off dev $2
sysctl "$orig_iptables_forward"
killall dhclient
nmcli radio wifi on
nmcli device connect $1

@ -12,7 +12,7 @@ trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --e
xscreensaver -no-splash&
nm-applet --sm-disable&
gnome-power-manager&
~/.xmonad/action-manager/start.sh ~/.xmonad/actiondisplay ~/.xmonad/actioncontrol --state-file ~/.xmonad/actionstate --volume-enabled --redshift-enabled --redshift-location 51:5 --redshift-temperature 6000:2000 --caffeine-enabled&
~/.xmonad/action-manager/start.sh ~/.xmonad/actiondisplay ~/.xmonad/actioncontrol --state-file ~/.xmonad/actionstate --redshift-location 51:5 --redshift-temperature 6000:2000&
# Fix for java applications
export _JAVA_AWT_WM_NONREPARENTING=1
@ -23,7 +23,7 @@ export OOO_FORCE_DESKTOP=gnome
# Auto-start applications
bash ~/.xmonad/battery-monitor.sh&
gajim&
keepass2 ~/Documents/passwords.kdbx&
keepass2 ~/cloud.vbgn.be/passwords.kdbx&
icedove&
mate-terminal -e ssh-add ~/.ssh/id_rsa&
dropbox start&

@ -45,16 +45,16 @@ baseXPConfig = defaultXPConfig {
workspaceManageHook :: ManageHook
workspaceManageHook = composeAll [
className =? "Icedove" --> doShift "2:com"
className =? "Thunderbird" --> doShift "2:com"
,className =? "Gajim" --> doShift "2:com"
,className =? "jetbrains-phpstorm" --> doShift "3:dev"
,className =? "jetbrains-pycharm" --> doShift "3:dev"
,className =? "jetbrains-clion" --> doShift "3:dev"
,className =? "MATLAB R2016b - academic use" --> doShift "3:dev"
,className =? "qtcreator" --> doShift "3:dev"
,className =? "KeePass2" --> doShift "9:div"
,className =? "Xmessage" --> doFloat
,className =? "Clementine" --> doShift "8:media"
,className =? "vlc" --> doShift "8:media"
]
xmobarAction :: String -- action
@ -75,7 +75,7 @@ main = do
, logHook = dynamicLogWithPP xmobarPP
{ ppOutput = hPutStrLn xmobar_proc
, ppHidden = xmobarSwitchWs
, ppTitle = xmobarColor "green" "" . shorten 80
, ppTitle = xmobarColor "green" "" . shorten 90
, ppSort = fmap(.scratchpadFilterOutWorkspace) (ppSort xmobarPP)
, ppOrder = \(ws:_:t:_) -> [ ws, t]
}
@ -124,10 +124,8 @@ main = do
]
`additionalKeys`
--
-- mod-ctrl-[1..9], Switch to workspace N
--
-- mod-ctrl-[1..9], Switch to workspace N
-- mod-ctrl-shift-[1..9], Move client to workspace N
-- mod-ctrl-[F1..F9], Switch to workspace N
-- mod-ctrl-shift-[F1..F9], Move client to workspace N
--
[((m .|. modMask baseConfig , k), windows $ f i)
| (i, k) <- zip (workspaces baseConfig) [xK_F1 .. xK_F9]

Loading…
Cancel
Save