xmobar - optic and themes
This commit is contained in:
@@ -14,10 +14,6 @@
|
|||||||
- Kalender
|
- Kalender
|
||||||
- Signing
|
- Signing
|
||||||
|
|
||||||
## Audio
|
|
||||||
|
|
||||||
- alsa
|
|
||||||
|
|
||||||
## Lockscreen
|
## Lockscreen
|
||||||
|
|
||||||
- Lockscreen implementieren
|
- Lockscreen implementieren
|
||||||
@@ -59,12 +55,15 @@
|
|||||||
|
|
||||||
- Installieren
|
- Installieren
|
||||||
|
|
||||||
|
## Catppuccin Theme
|
||||||
|
|
||||||
|
- Firefox
|
||||||
|
- Ecosia
|
||||||
|
- Anki
|
||||||
|
- Zathura
|
||||||
|
|
||||||
# Optimierung
|
# Optimierung
|
||||||
|
|
||||||
## Pulseaudio
|
|
||||||
|
|
||||||
- einrichten
|
|
||||||
|
|
||||||
## Rofi
|
## Rofi
|
||||||
|
|
||||||
- Theme wählen
|
- Theme wählen
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ return {
|
|||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd.colorscheme("catppuccin")
|
vim.cmd.colorscheme("catppuccin-mocha")
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
flavor = "mocha",
|
flavor = "mocha",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
grey: #6e738d;
|
grey: #6e738d;
|
||||||
|
|
||||||
width: 600;
|
width: 600;
|
||||||
font: "JetBrainsMono Nerd Font 14";
|
font: "Fira Code 14";
|
||||||
}
|
}
|
||||||
|
|
||||||
element-text, element-icon , mode-switcher {
|
element-text, element-icon , mode-switcher {
|
||||||
|
|||||||
@@ -5,58 +5,58 @@ config =
|
|||||||
defaultConfig
|
defaultConfig
|
||||||
{ font = "Fira Code 10"
|
{ font = "Fira Code 10"
|
||||||
, position = TopH 25
|
, position = TopH 25
|
||||||
, borderColor = "#f38ba8"
|
, borderColor = "#11111b"
|
||||||
, border = FullB
|
, border = FullB
|
||||||
, borderWidth = 2
|
, borderWidth = 2
|
||||||
, bgColor = "#eba0ac"
|
, bgColor = "#1e1e2e"
|
||||||
, fgColor = "#b4befe"
|
, fgColor = "#f5e0dc"
|
||||||
, commands =
|
, commands =
|
||||||
[
|
[
|
||||||
Run $ Com "/bin/sh" ["-c", "Status=$(pulseaudio-ctl full-status); Volume=$(cut -d ' ' -f 1 <<<$Status); Mute=$(cut -d ' ' -f 2 <<<$Status); Microphone=$(cut -d ' ' -f 3 <<<$ Status); if [[ $Mute == \"yes\" ]]; then Symbol=\"\xf466\"; elif [[ $Volume -le 50 ]]; then Symbol=\"\xf027\"; elseSymbol=\"\xf028\"; fi; if [[ $Microphone == *\"yes\"* ]]; then MicOut=\"\xf036d\"; else MicOut=\"\xf036c\"; fi; echo \"<fc=#db4d65><fn=1>$Symbol</fn></fc> $Volume% <fc=#db4d65><fn=1>$MicOut</fn></fc>\""] "audio" 100
|
Run $ Com "/bin/sh" ["-c", "Status=$(pulseaudio-ctl full-status); Volume=$(cut -d ' ' -f 1 <<<$Status); Mute=$(cut -d ' ' -f 2 <<<$Status); Microphone=$(cut -d ' ' -f 3 <<<$Status); SpeakerColor=\"#a6e3a1\"; MicColor=\"#a6e3a1\"; if [[ $Mute == \"yes\" ]]; then Symbol=\"\xf466\"; SpeakerColor=\"#f38ba8\"; elif [[ $Volume -le 50 ]]; then Symbol=\"\xf027\"; elseSymbol=\"\xf028\"; fi; if [[ $Microphone == \"yes\" ]]; then MicOut=\"\xf036d\"; MicColor=\"#f38ba8\"; else MicOut=\"\xf036c\"; fi; echo \"<fc=$SpeakerColor><fn=1>$Symbol</fn></fc> $Volume% <fc=$MicColor><fn=1>$MicOut</fn></fc>\""] "audio" 10
|
||||||
, Run $ Com "/bin/sh" ["-c", "echo \"<fc=#dbb302><fn=1>\xf00e0</fn></fc> $(xbacklight -get)%\""] "backlight" 100
|
, Run $ Com "/bin/sh" ["-c", "echo \"<fc=#f9e2af><fn=1>\xf00e0</fn></fc> $(xbacklight -get)%\""] "backlight" 10
|
||||||
, Run $ Cpu
|
, Run $ Cpu
|
||||||
[
|
[
|
||||||
"--template", "<fc=#a9a1e1><fn=1>\xf085</fn></fc> <total>%"
|
"--template", "<fc=#b4befe><fn=1>\xf085</fn></fc> <total>%"
|
||||||
, "--Low","3"
|
, "--Low","3"
|
||||||
, "--High","50"
|
, "--High","50"
|
||||||
, "--low","#bbc2cf"
|
, "--low","#f5e0dc"
|
||||||
, "--normal","#bbc2cf"
|
, "--normal","#f5e0dc"
|
||||||
, "--high","#fb4934"
|
, "--high","#f38ba8"
|
||||||
] 50
|
] 50
|
||||||
, Run $ Memory
|
, Run $ Memory
|
||||||
[
|
[
|
||||||
"-t","<fc=#51afef><fn=1>\xF2DB</fn></fc> <usedratio>%"
|
"-t","<fc=#74c7ec><fn=1>\xF2DB</fn></fc> <usedratio>%"
|
||||||
,"-H","80"
|
,"-H","80"
|
||||||
,"-L","10"
|
,"-L","10"
|
||||||
,"-l","#bbc2cf"
|
,"-l","#f5e0dc"
|
||||||
,"-n","#bbc2cf"
|
,"-n","#f5e0dc"
|
||||||
,"-h","#fb4934"
|
,"-h","#f38ba8"
|
||||||
] 50
|
] 50
|
||||||
, Run $ Date "<fc=#ECBE7B><fn=1>\xf017</fn></fc> %a %d.%m.%y %H:%M" "date" 300
|
, Run $ Date "<fc=#fab387><fn=1>\xf017</fn></fc> %a %d.%m.%y %H:%M" "date" 300
|
||||||
, Run $ DynNetwork
|
, Run $ DynNetwork
|
||||||
[
|
[
|
||||||
"-t","<fc=#4db5bd><fn=1>\xf063</fn></fc> <rx> <fc=#c678dd><fn=1>\xf062</fn></fc> <tx>"
|
"-t","<fc=#74c7ec><fn=1>\xf063</fn></fc> <rx> <fc=#f38ba8><fn=1>\xf062</fn></fc> <tx>"
|
||||||
,"-H","200"
|
,"-H","200"
|
||||||
,"-L","10"
|
,"-L","10"
|
||||||
,"-h","#bbc2cf"
|
,"-h","#f5e0dc"
|
||||||
,"-l","#bbc2cf"
|
,"-l","#f5e0dc"
|
||||||
,"-n","#bbc2cf"
|
,"-n","#f38ba8"
|
||||||
] 50
|
] 50
|
||||||
, Run $ BatteryP [ "BAT0" ]
|
, Run $ BatteryP [ "BAT0" ]
|
||||||
[
|
[
|
||||||
"--template" , "<fc=#B1DE76><fn=1>\xf240</fn></fc> <acstatus>"
|
"--template" , "<fc=#a6e3a1><fn=1>\xf240</fn></fc> <acstatus>"
|
||||||
, "--Low" , "10" -- units: %
|
, "--Low" , "10" -- units: %
|
||||||
, "--High" , "80" -- units: %
|
, "--High" , "80" -- units: %
|
||||||
, "--low" , "#fb4934"
|
, "--low" , "#f38ba8"
|
||||||
, "--normal" , "#bbc2cf"
|
, "--normal" , "#f5e0dc"
|
||||||
, "--high" , "#98be65"
|
, "--high" , "#a6e3a1"
|
||||||
, "--" -- battery specific options
|
, "--" -- battery specific options
|
||||||
-- discharging status
|
-- discharging status
|
||||||
, "-o" , "<left>% (<timeleft>)"
|
, "-o" , "<left>% (<timeleft>)"
|
||||||
-- AC "on" status
|
-- AC "on" status
|
||||||
, "-O" , "<left>% (<fc=#98be65>Charging</fc>)"
|
, "-O" , "<left>% (<fc=#a6e3a1>Charging</fc>)"
|
||||||
-- charged status
|
-- charged status
|
||||||
, "-i" , "<fc=#98be65>Charged</fc>"
|
, "-i" , "<fc=#f9e2af>Charged</fc>"
|
||||||
] 50
|
] 50
|
||||||
, Run XMonadLog
|
, Run XMonadLog
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import XMonad.Layout.Magnifier
|
|||||||
import XMonad.Util.ClickableWorkspaces
|
import XMonad.Util.ClickableWorkspaces
|
||||||
import XMonad.Util.Loggers
|
import XMonad.Util.Loggers
|
||||||
import Data.ByteString (maximum)
|
import Data.ByteString (maximum)
|
||||||
import Text.XHtml (gray)
|
|
||||||
import Distribution.Compat.Prelude (print)
|
import Distribution.Compat.Prelude (print)
|
||||||
|
|
||||||
|
|
||||||
@@ -20,14 +19,14 @@ myconfig = def
|
|||||||
{
|
{
|
||||||
layoutHook = myLayout
|
layoutHook = myLayout
|
||||||
, terminal = "alacritty"
|
, terminal = "alacritty"
|
||||||
, normalBorderColor = "#050508"
|
, normalBorderColor = "#f5c2e7"
|
||||||
, focusedBorderColor = "#89b4fa"
|
, focusedBorderColor = "#cdd6f4"
|
||||||
}
|
}
|
||||||
`additionalKeysP`
|
`additionalKeysP`
|
||||||
[
|
[
|
||||||
-- System
|
-- System
|
||||||
("M-p", spawn "rofi -show \"drun\"")
|
("M-p", spawn "rofi -show \"drun\"")
|
||||||
, ("<print>", spawn "maim --format=png \"/home/elias/Pictures/screenshot-$(date -u +'%Y-%m-%d-%H:%M:%S.png')\"")
|
, ("<print>", spawn "maim --format=png \"/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S)\"")
|
||||||
--Program
|
--Program
|
||||||
, ("M-c", spawn "firefox")
|
, ("M-c", spawn "firefox")
|
||||||
-- Brightness
|
-- Brightness
|
||||||
@@ -38,15 +37,17 @@ myconfig = def
|
|||||||
, ("<XF86AudioRaiseVolume>", spawn "pulseaudio-ctl up 5")
|
, ("<XF86AudioRaiseVolume>", spawn "pulseaudio-ctl up 5")
|
||||||
, ("<XF86AudioLowerVolume>", spawn "pulseaudio-ctl down 5")
|
, ("<XF86AudioLowerVolume>", spawn "pulseaudio-ctl down 5")
|
||||||
, ("<XF86AudioMicMute>", spawn "pulseaudio-ctl mute-input")
|
, ("<XF86AudioMicMute>", spawn "pulseaudio-ctl mute-input")
|
||||||
|
-- Print
|
||||||
|
, ("<XF86AudioMicMute>", spawn "pulseaudio-ctl mute-input")
|
||||||
]
|
]
|
||||||
`removeKeysP` []
|
`removeKeysP` []
|
||||||
|
|
||||||
myXmobarPP :: PP
|
myXmobarPP :: PP
|
||||||
myXmobarPP = def
|
myXmobarPP = def
|
||||||
{
|
{
|
||||||
ppSep = magenta " • "
|
ppSep = pink " • "
|
||||||
, ppWsSep = ""
|
, ppWsSep = ""
|
||||||
, ppCurrent = wrap " " "" . xmobarBorder "Top" "#a8dfe3" 2
|
, ppCurrent = wrap " " "" . xmobarBorder "Top" "#f5c2e7" 2
|
||||||
, ppHidden = wrap " " ""
|
, ppHidden = wrap " " ""
|
||||||
, ppHiddenNoWindows = gray . wrap " " ""
|
, ppHiddenNoWindows = gray . wrap " " ""
|
||||||
, ppUrgent = red . wrap (yellow "!") (yellow "!")
|
, ppUrgent = red . wrap (yellow "!") (yellow "!")
|
||||||
@@ -55,17 +56,17 @@ myXmobarPP = def
|
|||||||
, ppExtras = [logTitles formatFocused formatUnfocused]
|
, ppExtras = [logTitles formatFocused formatUnfocused]
|
||||||
}
|
}
|
||||||
where
|
where
|
||||||
formatFocused = wrap "[" "]" . magenta . ppWindow
|
formatFocused = wrap "[" "]" . pink . ppWindow
|
||||||
formatUnfocused = wrap "[" "]" . gray . ppWindow
|
formatUnfocused = wrap "[" "]" . gray . ppWindow
|
||||||
|
|
||||||
ppWindow :: String -> String
|
ppWindow :: String -> String
|
||||||
ppWindow = xmobarRaw . (\w -> if null w then "???" else w) . shorten 15 -- set maximum length of windowtitle to 15
|
ppWindow = xmobarRaw . (\w -> if null w then "???" else w) . shorten 15 -- set maximum length of windowtitle to 15
|
||||||
|
|
||||||
magenta, gray, red, yellow :: String -> String
|
pink, gray, red, yellow :: String -> String
|
||||||
magenta = xmobarColor "#ff79c6" ""
|
pink = xmobarColor "#f5c2e7" ""
|
||||||
gray = xmobarColor "#5c5e5e" ""
|
gray = xmobarColor "#cdd6f4" ""
|
||||||
red = xmobarColor "#ff5555" ""
|
red = xmobarColor "#f38ba8" ""
|
||||||
yellow = xmobarColor "#f1fa8c" ""
|
yellow = xmobarColor "#f9e2af" ""
|
||||||
|
|
||||||
|
|
||||||
myLayout = Tall 1 (3/100) (1/2) ||| Mirror (Tall 1 (3/100) (1/2)) ||| Full ||| ThreeColMid 1 (3/100) (1/2) -- wenn wieder zoom von fokusierten Seitenfenstern gewünscht, dann Fireox fixn und: magnifiercz' 1.3 (ThreeColMid 1 (3/100) (1/2))
|
myLayout = Tall 1 (3/100) (1/2) ||| Mirror (Tall 1 (3/100) (1/2)) ||| Full ||| ThreeColMid 1 (3/100) (1/2) -- wenn wieder zoom von fokusierten Seitenfenstern gewünscht, dann Fireox fixn und: magnifiercz' 1.3 (ThreeColMid 1 (3/100) (1/2))
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
theme = builtins.fetchurl {
|
||||||
|
url =
|
||||||
|
"https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-mocha";
|
||||||
|
sha256 = "1zhx3bfz5s2wjrj87w0ryh15vgsqqfhg6dm48p63r5fmqwsak721";
|
||||||
|
};
|
||||||
|
in {
|
||||||
programs.zathura = {
|
programs.zathura = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = {
|
options = {
|
||||||
synctex-editor-command = ''
|
synctex-editor-command = ''
|
||||||
|
include ${theme}
|
||||||
nvim --headless -c "VimtexInverseSearch %l '%f'"
|
nvim --headless -c "VimtexInverseSearch %l '%f'"
|
||||||
'';
|
'';
|
||||||
synctex = true;
|
synctex = true;
|
||||||
|
font = "Fira Code 16";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user