This commit is contained in:
Leon Kowarschick 2020-05-29 17:57:38 +02:00
parent c86377ccfe
commit 2fda7cb5c7
7 changed files with 37 additions and 14 deletions

View file

@ -1,4 +1,4 @@
{
"optOut": false,
"lastUpdateCheck": 1590658636938
"lastUpdateCheck": 1590756983935
}

View file

@ -14,6 +14,4 @@ gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight
gtk-xft-rgba=rgb
[settings]
gtk-theme-name="Arc-Darker"
gtk-application-prefer-dark-theme=true

View file

@ -1,4 +1,9 @@
[xin_-1]
file=/home/leon/Bilder/wallpapers/gruvboxabstractwall.png
[xin_1]
file=/home/leon/Bilder/wallpapers/ipgK.png
mode=5
bgcolor=#000000
[xin_0]
file=/home/leon/Bilder/wallpapers/ipgK.png
mode=5
bgcolor=#000000

View file

@ -1,8 +1,8 @@
[geometry]
posx=20
posy=50
sizex=1132
sizey=842
posx=582
posy=1439
sizex=992
sizey=636
[nitrogen]
view=icon

View file

@ -47,7 +47,7 @@ margin-bottom = 0
monitor = ${env:MONITOR:}
override-redirect = true
wm-restack = xmonad
;wm-restack = xmonad
;width = 100%:-28
;height = 30
@ -171,7 +171,7 @@ interval = 1
[module/player-mpv-tail]
type = custom/script
exec = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -t 42 -c '#abb2bf'
exec = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -t 42 -c '#8ec07c'
tail = true
click-left = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p pause
click-middle = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p playlist-pos -1

View file

@ -53,6 +53,7 @@ import XMonad.Util.EZConfig ( additionalKeysP
, removeKeysP
, checkKeymap
)
import XMonad.Util.NamedScratchpad
import XMonad.Util.Run
import XMonad.Util.SpawnOnce (spawnOnce)
@ -212,6 +213,7 @@ myStartupHook = do
spawn "/home/leon/.config/polybar/launch.sh"
spawnOnce "nitrogen --restore"
spawnOnce "mailnag"
spawnOnce "flashfocus"
for_ ["led1", "led2"] $ \led -> safeSpawn "sudo" ["liquidctl", "set", led, "color", "fixed", "00ffff"]
-- }}}
@ -273,6 +275,7 @@ myKeys = concat [ zoomRowBindings, tabbedBindings, multiMonitorBindings, program
, ("M-d", multiMonitorOperation W.view 0)
, ("M-S-s", (multiMonitorOperation W.shift 1) >> multiMonitorOperation W.view 1)
, ("M-S-d", (multiMonitorOperation W.shift 0) >> multiMonitorOperation W.view 0)
, ("M-C-s", windows swapScreenContents)
]
programLaunchBindings :: [(String, X ())]
@ -309,6 +312,7 @@ myKeys = concat [ zoomRowBindings, tabbedBindings, multiMonitorBindings, program
, ("<XF86AudioRaiseVolume>", spawn "amixer sset Master 5%+")
, ("<XF86AudioLowerVolume>", spawn "amixer sset Master 5%-")
, ("M-S-C-,", (notify "hi" (show $ map (\(a, _) -> show a) workspaceBindings)) >> (notify "ho" (show removedKeys)))
, ("M-<Delete>", spawn "flash_window")
]
workspaceBindings :: [(String, X ())]
@ -369,6 +373,20 @@ myKeys = concat [ zoomRowBindings, tabbedBindings, multiMonitorBindings, program
(winId:_) -> windows $ W.shiftWin (W.currentTag winSet) winId
swapScreenContents :: W.StackSet i l a sid sd -> W.StackSet i l a sid sd
swapScreenContents ws = if null (W.visible ws) then ws else
let
otherScreen = head $ W.visible ws
otherWsp = W.workspace otherScreen
currentScreen = W.current ws
currentWsp = W.workspace currentScreen
in
ws
{ W.current = currentScreen { W.workspace = otherWsp { W.tag = W.tag currentWsp } }
, W.visible = (otherScreen { W.workspace = currentWsp { W.tag = W.tag otherWsp } } : (tail $ W.visible ws))
}
withSelectionCommands :: [(String, X ())]
withSelectionCommands =

View file

@ -17,12 +17,14 @@ def run_fan_check():
temp = tdie_temp[0]
temp = float(re.findall(r"^Tdie:\s*\+(.*?)°C.+", temp)[0])
if temp < 50:
fan_speed = 0
fan_speed = 20
if temp < 60:
fan_speed = 30
elif temp < 70:
fan_speed = 50
fan_speed = 40
elif temp < 80:
fan_speed = 60
else:
fan_speed = 100
print("applying fan curve to " + str(fan_speed) + "%, temp is " + str(temp))