diff --git a/home-modules/default.nix b/home-modules/default.nix index c5bd1ec..187c65d 100644 --- a/home-modules/default.nix +++ b/home-modules/default.nix @@ -22,4 +22,5 @@ gtk = import ./gtk.nix; xmonad = import ./xmonad; polybar = import ./polybar; + mpv = import ./mpv.nix; } diff --git a/home-modules/mpv.nix b/home-modules/mpv.nix new file mode 100644 index 0000000..d0fde38 --- /dev/null +++ b/home-modules/mpv.nix @@ -0,0 +1,12 @@ +{pkgs, ...}: { + programs.mpv = { + enable = true; + scripts = with pkgs.mpvScripts; [ + thumbfast + uosc + ]; + config = { + loop-file = "inf"; + }; + }; +} diff --git a/home-modules/polybar/polybar.ini b/home-modules/polybar/polybar.ini index 81a3ec6..81a1fef 100644 --- a/home-modules/polybar/polybar.ini +++ b/home-modules/polybar/polybar.ini @@ -1,10 +1,11 @@ [colors] -background = #000000 -foreground = #ffffff -accent = #6272a4 -alert = #a60000 -disabled = #b4b4b4 - +background = #CC101116 +background-alt = #373849 +foreground = #f8f8f2 +primary = #F0C674 +secondary = #8ABEB7 +alert = #A54242 +disabled = #707880 [settings] screenchange-reload = true @@ -21,13 +22,16 @@ enable-struts = true enable-ipc = true wm-restack = generic separator = | +line-size = 2 +border-bottom-size = 2 +border-bottom-color = #000000 font-0 = "monospace:size=13;3" font-1 = "monospace:size=13;2" modules-left = xworkspaces tray modules-center = time -modules-right = wireless-network wired-network battery backlight pulseaudio cpu memory redshift date +modules-right = wlan eth battery backlight pulseaudio cpu memory redshift date [module/tray] @@ -37,7 +41,9 @@ tray-spacing = 10px [module/redshift] type = custom/script -format-prefix = " " +# format-prefix = " " +format-prefix = "TEMP " +format-prefix-foreground = ${colors.primary} exec = ~/.config/polybar/redshift.sh temperature click-left = ~/.config/polybar/redshift.sh toggle interval=1.0 @@ -51,14 +57,15 @@ type = internal/xworkspaces enable-scroll = false label-active = %name% -label-active-background = ${colors.accent} +label-active-background = ${colors.background-alt} +label-active-underline= ${colors.primary} label-active-padding = 14px label-occupied = %name% label-occupied-padding = 10px -label-urgent = %icon% -label-urgent-foreground = ${colors.alert} +label-urgent = %name% +label-urgent-background = ${colors.alert} label-urgent-padding = 10px label-empty = "" @@ -121,12 +128,13 @@ animation-charging-4 =  animation-charging-framerate = 750 -[module/wireless-network] +[module/wlan] type = internal/network interface-type = wireless -format-connected =