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, "optOut": false,
"lastUpdateCheck": 1590658636938 "lastUpdateCheck": 1590756983935
} }

View file

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

View file

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

View file

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

View file

@ -47,7 +47,7 @@ margin-bottom = 0
monitor = ${env:MONITOR:} monitor = ${env:MONITOR:}
override-redirect = true override-redirect = true
wm-restack = xmonad ;wm-restack = xmonad
;width = 100%:-28 ;width = 100%:-28
;height = 30 ;height = 30
@ -171,7 +171,7 @@ interval = 1
[module/player-mpv-tail] [module/player-mpv-tail]
type = custom/script 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 tail = true
click-left = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p pause 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 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 , removeKeysP
, checkKeymap , checkKeymap
) )
import XMonad.Util.NamedScratchpad import XMonad.Util.NamedScratchpad
import XMonad.Util.Run import XMonad.Util.Run
import XMonad.Util.SpawnOnce (spawnOnce) import XMonad.Util.SpawnOnce (spawnOnce)
@ -212,6 +213,7 @@ myStartupHook = do
spawn "/home/leon/.config/polybar/launch.sh" spawn "/home/leon/.config/polybar/launch.sh"
spawnOnce "nitrogen --restore" spawnOnce "nitrogen --restore"
spawnOnce "mailnag" spawnOnce "mailnag"
spawnOnce "flashfocus"
for_ ["led1", "led2"] $ \led -> safeSpawn "sudo" ["liquidctl", "set", led, "color", "fixed", "00ffff"] 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-d", multiMonitorOperation W.view 0)
, ("M-S-s", (multiMonitorOperation W.shift 1) >> multiMonitorOperation W.view 1) , ("M-S-s", (multiMonitorOperation W.shift 1) >> multiMonitorOperation W.view 1)
, ("M-S-d", (multiMonitorOperation W.shift 0) >> multiMonitorOperation W.view 0) , ("M-S-d", (multiMonitorOperation W.shift 0) >> multiMonitorOperation W.view 0)
, ("M-C-s", windows swapScreenContents)
] ]
programLaunchBindings :: [(String, X ())] programLaunchBindings :: [(String, X ())]
@ -309,6 +312,7 @@ myKeys = concat [ zoomRowBindings, tabbedBindings, multiMonitorBindings, program
, ("<XF86AudioRaiseVolume>", spawn "amixer sset Master 5%+") , ("<XF86AudioRaiseVolume>", spawn "amixer sset Master 5%+")
, ("<XF86AudioLowerVolume>", 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-S-C-,", (notify "hi" (show $ map (\(a, _) -> show a) workspaceBindings)) >> (notify "ho" (show removedKeys)))
, ("M-<Delete>", spawn "flash_window")
] ]
workspaceBindings :: [(String, X ())] workspaceBindings :: [(String, X ())]
@ -369,6 +373,20 @@ myKeys = concat [ zoomRowBindings, tabbedBindings, multiMonitorBindings, program
(winId:_) -> windows $ W.shiftWin (W.currentTag winSet) winId (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 :: [(String, X ())]
withSelectionCommands = withSelectionCommands =

View file

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