mirror of
https://github.com/mrfluffy-dev/dotfiles.git
synced 2026-01-17 05:40:34 +00:00
miner commits
This commit is contained in:
@@ -35,9 +35,11 @@
|
|||||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
(setq display-line-numbers-type `relative)
|
(setq display-line-numbers-type `relative)
|
||||||
|
|
||||||
(setq doom-font (font-spec :family "Ubuntu Mono" :size 15)
|
(set-fontset-font "fontset-default" nil (font-spec :size 15 :name "Meterial Icons"))
|
||||||
doom-variable-pitch-font (font-spec :family "Ubuntu Mono" :size 15)
|
|
||||||
doom-big-font (font-spec :family "Ubuntu Mono" :size 24))
|
(setq doom-font (font-spec :family "JetBrainsMono Nerd Font" :size 15)
|
||||||
|
doom-variable-pitch-font (font-spec :family "JetBrainsMono Nerd Font" :size 15)
|
||||||
|
doom-big-font (font-spec :family "JetBrainsMono Nerd Font" :size 24))
|
||||||
|
|
||||||
(require 'whitespace)
|
(require 'whitespace)
|
||||||
(setq whitespace-line-column 99)
|
(setq whitespace-line-column 99)
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
;;hy ; readability of scheme w/ speed of python
|
;;hy ; readability of scheme w/ speed of python
|
||||||
;;idris ; a language you can depend on
|
;;idris ; a language you can depend on
|
||||||
;;json ; At least it ain't XML
|
;;json ; At least it ain't XML
|
||||||
(java +meghanada) ; the poster child for carpal tunnel syndrome
|
(java +lsp) ; the poster child for carpal tunnel syndrome
|
||||||
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
;;julia ; a better, faster MATLAB
|
;;julia ; a better, faster MATLAB
|
||||||
kotlin ; a better, slicker Java(Script)
|
kotlin ; a better, slicker Java(Script)
|
||||||
|
|||||||
@@ -23,21 +23,23 @@ use penrose::{
|
|||||||
use simplelog::{LevelFilter, SimpleLogger};
|
use simplelog::{LevelFilter, SimpleLogger};
|
||||||
|
|
||||||
// Replace these with your preferred terminal and program launcher
|
// Replace these with your preferred terminal and program launcher
|
||||||
const TERMINAL: &str = "alacritty";
|
const TERMINAL: &str = "kitty";
|
||||||
|
|
||||||
struct StartupHook {}
|
struct StartupHook {}
|
||||||
impl<X: XConn> Hook<X> for StartupHook {
|
impl<X: XConn> Hook<X> for StartupHook {
|
||||||
fn startup(&mut self, wm: &mut WindowManager<X>) -> Result<()> {
|
fn startup(&mut self, wm: &mut WindowManager<X>) -> Result<()> {
|
||||||
if wm.n_screens() == 1 {
|
if wm.n_screens() == 1 {
|
||||||
spawn!("eww -c /home/mrfluffy/.config/eww/bar open-many bar")
|
spawn!("polybar barbase1")
|
||||||
} else {
|
} else {
|
||||||
spawn!("eww -c /home/mrfluffy/.config/eww/bar open-many bar bar_1")
|
spawn!("polybar barbase1").unwrap();
|
||||||
|
spawn!("polybar barbase2")
|
||||||
}
|
}
|
||||||
.unwrap();
|
.unwrap();
|
||||||
spawn!("sh /home/mrfluffy/.config/script/autostart.sh").unwrap();
|
spawn!("sh /home/mrfluffy/.config/script/autostart.sh").unwrap();
|
||||||
spawn!("xss-lock -- /home/mrfluffy/.config/script/betterlockscreen.sh").unwrap();
|
spawn!("xss-lock -- /home/mrfluffy/.config/script/betterlockscreen.sh").unwrap();
|
||||||
spawn!("picom --backend glx").unwrap();
|
spawn!("picom --backend glx").unwrap();
|
||||||
spawn!("nitrogen --restore").unwrap();
|
spawn!("nitrogen --restore").unwrap();
|
||||||
|
spawn!("fcitx5 -d").unwrap();
|
||||||
spawn!("sxhkd")
|
spawn!("sxhkd")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,12 +52,13 @@ where
|
|||||||
fn randr_notify(&mut self, wm: &mut WindowManager<X>) -> Result<()> {
|
fn randr_notify(&mut self, wm: &mut WindowManager<X>) -> Result<()> {
|
||||||
update_monitors_via_xrandr("HDMI-A-0", "eDP", RelativePosition::Left).unwrap();
|
update_monitors_via_xrandr("HDMI-A-0", "eDP", RelativePosition::Left).unwrap();
|
||||||
if wm.n_screens() != 1 {
|
if wm.n_screens() != 1 {
|
||||||
spawn!("killall eww").unwrap();
|
spawn!("killall polybar").unwrap();
|
||||||
let three_seconds = Duration::from_millis(500);
|
let three_seconds = Duration::from_millis(500);
|
||||||
sleep(three_seconds);
|
sleep(three_seconds);
|
||||||
spawn!("eww -c /home/mrfluffy/.config/eww/bar open-many bar bar_1")
|
spawn!("polybar barbase1").unwrap();
|
||||||
|
spawn!("polybar barbase2")
|
||||||
} else {
|
} else {
|
||||||
spawn!("echo 'Only one screen connected'")
|
spawn!("polybar barbase1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,7 @@ fn main() -> penrose::Result<()> {
|
|||||||
.unfocused_border("#1A1A1A")?
|
.unfocused_border("#1A1A1A")?
|
||||||
.gap_px(5)
|
.gap_px(5)
|
||||||
.top_bar(true)
|
.top_bar(true)
|
||||||
.bar_height(32);
|
.bar_height(25);
|
||||||
|
|
||||||
// Default number of clients in the main layout area
|
// Default number of clients in the main layout area
|
||||||
let n_main = 1;
|
let n_main = 1;
|
||||||
|
|||||||
15
polybar/.config/polybar/colors/colors.ini
Normal file
15
polybar/.config/polybar/colors/colors.ini
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
[colors]
|
||||||
|
background = #1d1d2d
|
||||||
|
background-alt = #11111b
|
||||||
|
foreground = #cdd6f4
|
||||||
|
primary = #89dceb
|
||||||
|
secondary = #74c7ec
|
||||||
|
alert = #f38ba8
|
||||||
|
black = #24283b
|
||||||
|
cyan = #89dceb
|
||||||
|
green = #a6e3a1
|
||||||
|
orange = #fab387
|
||||||
|
yellow = #f9e2af
|
||||||
|
red = #f38ba8
|
||||||
|
pink = #f5c2e7
|
||||||
|
blue = #89b4fa
|
||||||
@@ -1,457 +1,122 @@
|
|||||||
;==========================================================
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||||
;
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||||
;
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
|
||||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
|
||||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
|
||||||
;
|
|
||||||
;
|
|
||||||
; To learn more about how to configure Polybar
|
|
||||||
; go to https://github.com/jaagr/polybar
|
|
||||||
;
|
|
||||||
; The README contains a lot of information
|
|
||||||
;
|
|
||||||
;==========================================================
|
|
||||||
|
|
||||||
[colors]
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
background = #282a36
|
|
||||||
foreground = #f8f8f2
|
|
||||||
background-alt = #99444444
|
|
||||||
foreground-alt = #f8f8f2
|
|
||||||
primary = #6e5991
|
|
||||||
secondary = #363949
|
|
||||||
alert = #bd2c40
|
|
||||||
|
|
||||||
[bar/barbase1]
|
[bar/barbase1]
|
||||||
monitor = HDMI-A-0
|
monitor = HDMI-A-0
|
||||||
offset-y = -2
|
monitor-fallback =eDP
|
||||||
;width = 100%
|
width = 100%
|
||||||
height = 29
|
height = 25
|
||||||
fixed-center = false
|
radius = 0
|
||||||
|
fixed-center = true
|
||||||
|
|
||||||
|
border-size = 0
|
||||||
|
border-color = ${colors.background}
|
||||||
|
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
line-size = 3
|
|
||||||
line-color = #f00
|
|
||||||
border-size = 0
|
|
||||||
border-color = #00000000
|
|
||||||
padding-left = 0
|
padding-left = 0
|
||||||
padding-right = 2
|
padding-right = 1
|
||||||
module-margin-left = 1
|
|
||||||
module-margin-right = 2
|
module-margin-left = 0
|
||||||
font-0 = Ubuntu:pixelsize=10;1
|
module-margin-right = 0
|
||||||
font-1 = Source Han Sans JP:pixelsize=10;1
|
|
||||||
font-2 = siji:pixelsize=10;1
|
font-0 = "JetBrainsMono Nerd Font:size=15;5"
|
||||||
|
font-1 = "SauceCodePro Nerd Font Mono:size=20;5"
|
||||||
|
font-2 = "Material Icons:pixelsize=20;5"
|
||||||
|
font-3 = "Sinji:pixelsize=15;5"
|
||||||
|
font-4 = "Togalite medium:pixelsize=11;2"
|
||||||
|
font-5 = "SauceCodePro Nerd Font Mono:size=16;5"
|
||||||
|
font-6 = "JetBrainsMono Nerd Font Mono:size=12;4"
|
||||||
|
font-7 = "JetBrainsMono Nerd Font:pixelsize=12;4"
|
||||||
|
font-8 = "Source Han Sans JP:pixelsize=14;2"
|
||||||
|
|
||||||
|
; MODULES SETUP
|
||||||
modules-left = ewmh
|
modules-left = ewmh
|
||||||
modules-center =
|
;modules-center = left1 spotify-artist spotify-track left2
|
||||||
modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth battery date powermenu
|
modules-right = right1 volume sep1 memory sep1 pacman-updates sep1 cpu date right2
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
|
tray-offset-y = 2
|
||||||
|
tray-offset-x = 2
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = pointer
|
||||||
|
|
||||||
|
line-size = 2
|
||||||
|
|
||||||
|
#override-redirect = true
|
||||||
|
enable-ipc = true
|
||||||
|
|
||||||
|
offset-y = -2
|
||||||
|
offset-x = -2
|
||||||
|
|
||||||
|
|
||||||
[bar/barbase2]
|
[bar/barbase2]
|
||||||
monitor = eDP
|
monitor = eDP
|
||||||
offset-y = -2
|
width = 100%
|
||||||
;width = 100%
|
height = 25
|
||||||
height = 29
|
radius = 0
|
||||||
fixed-center = false
|
fixed-center = true
|
||||||
|
|
||||||
|
border-size = 0
|
||||||
|
border-color = ${colors.background}
|
||||||
|
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
line-size = 3
|
|
||||||
line-color = #f00
|
|
||||||
border-size = 0
|
|
||||||
border-color = #00000000
|
|
||||||
padding-left = 0
|
padding-left = 0
|
||||||
padding-right = 2
|
padding-right = 1
|
||||||
module-margin-left = 1
|
|
||||||
module-margin-right = 2
|
module-margin-left = 0
|
||||||
font-0 = Ubuntu:pixelsize=10;1
|
module-margin-right = 0
|
||||||
font-1 = Source Han Sans JP:pixelsize=10;1
|
|
||||||
font-2 = siji:pixelsize=10;1
|
font-0 = "JetBrainsMono Nerd Font:size=15;5"
|
||||||
|
font-1 = "SauceCodePro Nerd Font Mono:size=20;5"
|
||||||
|
font-2 = "Material Icons:pixelsize=20;5"
|
||||||
|
font-3 = "Sinji:pixelsize=15;5"
|
||||||
|
font-4 = "Togalite medium:pixelsize=11;2"
|
||||||
|
font-5 = "SauceCodePro Nerd Font Mono:size=16;5"
|
||||||
|
font-6 = "JetBrainsMono Nerd Font Mono:size=12;4"
|
||||||
|
font-7 = "JetBrainsMono Nerd Font:pixelsize=12;4"
|
||||||
|
font-8 = "Source Han Sans JP:pixelsize=14;2"
|
||||||
|
|
||||||
|
; MODULES SETUP
|
||||||
modules-left = ewmh
|
modules-left = ewmh
|
||||||
modules-center =
|
;modules-center = left1 spotify-artist spotify-track left2
|
||||||
modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth battery date powermenu
|
modules-right = right1 volume sep1 memory sep1 pacman-updates sep1 cpu date right2
|
||||||
tray-position = right
|
|
||||||
tray-padding = 2
|
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = pointer
|
||||||
|
|
||||||
[module/ewmh]
|
line-size = 2
|
||||||
type = internal/xworkspaces
|
|
||||||
pin-workspaces = false
|
|
||||||
enable-click = true
|
|
||||||
enable-scroll = false
|
|
||||||
icon-0 = 1;一
|
|
||||||
icon-1 = 2;二
|
|
||||||
icon-2 = 3;三
|
|
||||||
icon-3 = 4;四
|
|
||||||
icon-4 = 5;五
|
|
||||||
icon-5 = 6;六
|
|
||||||
icon-6 = 7;七
|
|
||||||
icon-7 = 8;八
|
|
||||||
icon-8 = 9;九
|
|
||||||
format = <label-state>
|
|
||||||
label-active = %icon%
|
|
||||||
label-active-foreground = ${colors.green}
|
|
||||||
label-active-background = #6e5991
|
|
||||||
label-active-padding = 1
|
|
||||||
label-occupied = %icon%
|
|
||||||
label-occupied-foreground = ${colors.blue}
|
|
||||||
label-occupied-background = #363949
|
|
||||||
label-occupied-padding = 1
|
|
||||||
label-urgent = %icon%
|
|
||||||
label-urgent-foreground = ${colors.red}
|
|
||||||
label-urgent-underline = #0000ff
|
|
||||||
label-urgent-padding = 1
|
|
||||||
label-empty = %icon%
|
|
||||||
label-empty-foreground = ${colors.fg}
|
|
||||||
label-empty-underline = ${colors.cyan}
|
|
||||||
label-empty-padding = 1
|
|
||||||
|
|
||||||
[module/xwindow]
|
#override-redirect = true
|
||||||
type = internal/xwindow
|
enable-ipc = true
|
||||||
label = %title:0:30:...%
|
|
||||||
|
|
||||||
[module/xkeyboard]
|
offset-y = -2
|
||||||
type = internal/xkeyboard
|
offset-x = -2
|
||||||
blacklist-0 = num lock
|
|
||||||
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
format-prefix-underline = ${colors.secondary}
|
|
||||||
|
|
||||||
label-layout = %layout%
|
;separator = %{F#4C566A}|%{F-}
|
||||||
label-layout-underline = ${colors.secondary}
|
|
||||||
|
|
||||||
label-indicator-padding = 2
|
|
||||||
label-indicator-margin = 1
|
|
||||||
label-indicator-background = ${colors.secondary}
|
|
||||||
label-indicator-underline = ${colors.secondary}
|
|
||||||
|
|
||||||
[module/filesystem]
|
|
||||||
type = internal/fs
|
|
||||||
interval = 25
|
|
||||||
|
|
||||||
mount-0 = /home
|
|
||||||
|
|
||||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
|
||||||
label-unmounted = %mountpoint% not mounted
|
|
||||||
label-unmounted-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/bspwm]
|
|
||||||
type = internal/bspwm
|
|
||||||
|
|
||||||
label-focused = %index%
|
|
||||||
label-focused-background = ${colors.background-alt}
|
|
||||||
label-focused-underline= ${colors.primary}
|
|
||||||
label-focused-padding = 2
|
|
||||||
|
|
||||||
label-occupied = %index%
|
|
||||||
label-occupied-padding = 2
|
|
||||||
|
|
||||||
label-urgent = %index%!
|
|
||||||
label-urgent-background = ${colors.alert}
|
|
||||||
label-urgent-padding = 2
|
|
||||||
|
|
||||||
label-empty = %index%
|
|
||||||
label-empty-foreground = ${colors.foreground-alt}
|
|
||||||
label-empty-padding = 2
|
|
||||||
|
|
||||||
; Separator in between workspaces
|
|
||||||
; label-separator = |
|
; label-separator = |
|
||||||
|
|
||||||
[module/i3]
|
|
||||||
type = internal/i3
|
|
||||||
format = <label-state> <label-mode>
|
|
||||||
index-sort = true
|
|
||||||
wrapping-scroll = false
|
|
||||||
|
|
||||||
; Only show workspaces on the same output as the bar
|
|
||||||
;pin-workspaces = true
|
|
||||||
|
|
||||||
label-mode-padding = 2
|
|
||||||
label-mode-foreground = #000
|
|
||||||
label-mode-background = ${colors.primary}
|
|
||||||
|
|
||||||
; focused = Active workspace on focused monitor
|
|
||||||
label-focused = %index%
|
|
||||||
label-focused-background = ${module/bspwm.label-focused-background}
|
|
||||||
label-focused-underline = ${module/bspwm.label-focused-underline}
|
|
||||||
label-focused-padding = ${module/bspwm.label-focused-padding}
|
|
||||||
|
|
||||||
; unfocused = Inactive workspace on any monitor
|
|
||||||
label-unfocused = %index%
|
|
||||||
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
|
||||||
|
|
||||||
; visible = Active workspace on unfocused monitor
|
|
||||||
label-visible = %index%
|
|
||||||
label-visible-background = ${self.label-focused-background}
|
|
||||||
label-visible-underline = ${self.label-focused-underline}
|
|
||||||
label-visible-padding = ${self.label-focused-padding}
|
|
||||||
|
|
||||||
; urgent = Workspace with urgency hint set
|
|
||||||
label-urgent = %index%
|
|
||||||
label-urgent-background = ${module/bspwm.label-urgent-background}
|
|
||||||
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
|
||||||
|
|
||||||
; Separator in between workspaces
|
|
||||||
; label-separator = |
|
|
||||||
|
|
||||||
|
|
||||||
[module/mpd]
|
|
||||||
type = internal/mpd
|
|
||||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
|
||||||
|
|
||||||
icon-prev =
|
|
||||||
icon-stop =
|
|
||||||
icon-play =
|
|
||||||
icon-pause =
|
|
||||||
icon-next =
|
|
||||||
|
|
||||||
label-song-maxlen = 25
|
|
||||||
label-song-ellipsis = true
|
|
||||||
|
|
||||||
[module/xbacklight]
|
|
||||||
type = internal/xbacklight
|
|
||||||
|
|
||||||
format = <label> <bar>
|
|
||||||
label = BL
|
|
||||||
|
|
||||||
bar-width = 10
|
|
||||||
bar-indicator = |
|
|
||||||
bar-indicator-foreground = #fff
|
|
||||||
bar-indicator-font = 2
|
|
||||||
bar-fill = ─
|
|
||||||
bar-fill-font = 2
|
|
||||||
bar-fill-foreground = #9f78e1
|
|
||||||
bar-empty = ─
|
|
||||||
bar-empty-font = 2
|
|
||||||
bar-empty-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/backlight-acpi]
|
|
||||||
inherit = module/xbacklight
|
|
||||||
type = internal/backlight
|
|
||||||
card = intel_backlight
|
|
||||||
|
|
||||||
[module/cpu]
|
|
||||||
type = internal/cpu
|
|
||||||
interval = 2
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
format-underline = #f90000
|
|
||||||
label = %percentage:2%%
|
|
||||||
|
|
||||||
[module/memory]
|
|
||||||
type = internal/memory
|
|
||||||
interval = 2
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
format-underline = #4bffdc
|
|
||||||
label = %percentage_used%%
|
|
||||||
|
|
||||||
[module/wlan]
|
|
||||||
type = internal/network
|
|
||||||
interface = wlp2s0
|
|
||||||
interval = 3.0
|
|
||||||
|
|
||||||
format-connected = <ramp-signal> <label-connected>
|
|
||||||
format-connected-underline = #9f78e1
|
|
||||||
label-connected = %essid%
|
|
||||||
|
|
||||||
format-disconnected =
|
|
||||||
;format-disconnected = <label-disconnected>
|
|
||||||
;format-disconnected-underline = ${self.format-connected-underline}
|
|
||||||
;label-disconnected = %ifname% disconnected
|
|
||||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
ramp-signal-0 =
|
|
||||||
ramp-signal-1 =
|
|
||||||
ramp-signal-2 =
|
|
||||||
ramp-signal-3 =
|
|
||||||
ramp-signal-4 =
|
|
||||||
ramp-signal-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/eth]
|
|
||||||
type = internal/network
|
|
||||||
interface = enp3s0
|
|
||||||
interval = 3.0
|
|
||||||
|
|
||||||
format-connected-underline = #55aa55
|
|
||||||
format-connected-prefix = " "
|
|
||||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
label-connected = %local_ip%
|
|
||||||
|
|
||||||
format-disconnected =
|
|
||||||
;format-disconnected = <label-disconnected>
|
|
||||||
;format-disconnected-underline = ${self.format-connected-underline}
|
|
||||||
;label-disconnected = %ifname% disconnected
|
|
||||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/date]
|
|
||||||
type = internal/date
|
|
||||||
date = %%{F#fff}%m/%d/%Y%%{F-} %%{F#fff}%I:%M %p%{F-}
|
|
||||||
date-alt = %%{F#fff}%A, %B %d, %Y %%{F#fff}%I:%M:%{F#666}%%{F#fba922}%S%%{F-} %p
|
|
||||||
;interval = 5
|
|
||||||
;date =
|
|
||||||
;date-alt = " %Y-%m-%d"
|
|
||||||
;time = %H:%M
|
|
||||||
;time-alt = %H:%M:%S
|
|
||||||
;format-prefix =
|
|
||||||
;format-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
;format-underline = #0a6cf5
|
|
||||||
;label = %date% %time%
|
|
||||||
|
|
||||||
[module/pulseaudio]
|
|
||||||
type = internal/pulseaudio
|
|
||||||
format-volume = <label-volume> <bar-volume>
|
|
||||||
label-volume = VOL %percentage%%
|
|
||||||
label-volume-foreground = ${root.foreground}
|
|
||||||
|
|
||||||
label-muted = 🔇 muted
|
|
||||||
label-muted-foreground = #666
|
|
||||||
|
|
||||||
bar-volume-width = 10
|
|
||||||
bar-volume-foreground-0 = #55aa55
|
|
||||||
bar-volume-foreground-1 = #55aa55
|
|
||||||
bar-volume-foreground-2 = #55aa55
|
|
||||||
bar-volume-foreground-3 = #55aa55
|
|
||||||
bar-volume-foreground-4 = #55aa55
|
|
||||||
bar-volume-foreground-5 = #f5a70a
|
|
||||||
bar-volume-foreground-6 = #ff5555
|
|
||||||
bar-volume-gradient = false
|
|
||||||
bar-volume-indicator = |
|
|
||||||
bar-volume-indicator-font = 2
|
|
||||||
bar-volume-fill = ─
|
|
||||||
bar-volume-fill-font = 2
|
|
||||||
bar-volume-empty = ─
|
|
||||||
bar-volume-empty-font = 2
|
|
||||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
|
|
||||||
[module/alsa]
|
|
||||||
type = internal/alsa
|
|
||||||
|
|
||||||
format-volume = <label-volume> <bar-volume>
|
|
||||||
label-volume = VOL
|
|
||||||
label-volume-foreground = ${root.foreground}
|
|
||||||
|
|
||||||
format-muted-prefix = " "
|
|
||||||
format-muted-foreground = ${colors.foreground-alt}
|
|
||||||
label-muted = muted
|
|
||||||
|
|
||||||
bar-volume-width = 10
|
|
||||||
bar-volume-foreground-0 = #55aa55
|
|
||||||
bar-volume-foreground-1 = #55aa55
|
|
||||||
bar-volume-foreground-2 = #55aa55
|
|
||||||
bar-volume-foreground-3 = #55aa55
|
|
||||||
bar-volume-foreground-4 = #55aa55
|
|
||||||
bar-volume-foreground-5 = #f5a70a
|
|
||||||
bar-volume-foreground-6 = #ff5555
|
|
||||||
bar-volume-gradient = false
|
|
||||||
bar-volume-indicator = |
|
|
||||||
bar-volume-indicator-font = 2
|
|
||||||
bar-volume-fill = ─
|
|
||||||
bar-volume-fill-font = 2
|
|
||||||
bar-volume-empty = ─
|
|
||||||
bar-volume-empty-font = 2
|
|
||||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/battery]
|
|
||||||
type = internal/battery
|
|
||||||
battery = BAT0
|
|
||||||
adapter = AC
|
|
||||||
full-at = 98
|
|
||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
|
||||||
format-charging-underline = #ffb52a
|
|
||||||
|
|
||||||
format-discharging = <animation-discharging> <label-discharging>
|
|
||||||
format-discharging-underline = ${self.format-charging-underline}
|
|
||||||
|
|
||||||
format-full-prefix = " "
|
|
||||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
format-full-underline = ${self.format-charging-underline}
|
|
||||||
|
|
||||||
ramp-capacity-0 =
|
|
||||||
ramp-capacity-1 =
|
|
||||||
ramp-capacity-2 =
|
|
||||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
animation-charging-0 =
|
|
||||||
animation-charging-1 =
|
|
||||||
animation-charging-2 =
|
|
||||||
animation-charging-foreground = ${colors.foreground-alt}
|
|
||||||
animation-charging-framerate = 750
|
|
||||||
|
|
||||||
animation-discharging-0 =
|
|
||||||
animation-discharging-1 =
|
|
||||||
animation-discharging-2 =
|
|
||||||
animation-discharging-foreground = ${colors.foreground-alt}
|
|
||||||
animation-discharging-framerate = 750
|
|
||||||
|
|
||||||
[module/temperature]
|
|
||||||
type = internal/temperature
|
|
||||||
thermal-zone = 0
|
|
||||||
warn-temperature = 60
|
|
||||||
|
|
||||||
format = <ramp> <label>
|
|
||||||
format-underline = #f50a4d
|
|
||||||
format-warn = <ramp> <label-warn>
|
|
||||||
format-warn-underline = ${self.format-underline}
|
|
||||||
|
|
||||||
label = %temperature-c%
|
|
||||||
label-warn = %temperature-c%
|
|
||||||
label-warn-foreground = ${colors.secondary}
|
|
||||||
|
|
||||||
ramp-0 =
|
|
||||||
ramp-1 =
|
|
||||||
ramp-2 =
|
|
||||||
ramp-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/powermenu]
|
|
||||||
type = custom/menu
|
|
||||||
|
|
||||||
expand-right = true
|
|
||||||
|
|
||||||
format-spacing = 1
|
|
||||||
|
|
||||||
label-open =
|
|
||||||
label-open-foreground = ${colors.foreground}
|
|
||||||
label-close = cancel
|
|
||||||
label-close-foreground = ${colors.forground}
|
|
||||||
label-separator = |
|
|
||||||
label-separator-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
menu-0-0 = reboot
|
|
||||||
menu-0-0-exec = menu-open-1
|
|
||||||
menu-0-1 = power off
|
|
||||||
menu-0-1-exec = menu-open-2
|
|
||||||
|
|
||||||
menu-1-0 = cancel
|
|
||||||
menu-1-0-exec = menu-open-0
|
|
||||||
menu-1-1 = reboot
|
|
||||||
menu-1-1-exec = sudo reboot
|
|
||||||
|
|
||||||
menu-2-0 = power off
|
|
||||||
menu-2-0-exec = sudo poweroff
|
|
||||||
menu-2-1 = cancel
|
|
||||||
menu-2-1-exec = menu-open-0
|
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
|
include-file = ~/.config/polybar/modules/modules.ini
|
||||||
|
include-file = ~/.config/polybar/colors/colors.ini
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
;compositing-background = xor
|
;compositing-background = xor
|
||||||
;compositing-background = screen
|
;compositing-background = screen
|
||||||
;compositing-foreground = source
|
;compositing-foreground = source
|
||||||
;compositing-border = over
|
;compositing-border = over
|
||||||
;pseudo-transparency = false
|
pseudo-transparency = false
|
||||||
|
|
||||||
;[global/wm]
|
[global/wm]
|
||||||
;margin-top = 5
|
margin-bottom = 0
|
||||||
;margin-bottom = 5
|
margin-top = 0
|
||||||
|
|
||||||
; vim:ft=dosini
|
|
||||||
|
|||||||
457
polybar/.config/polybar/dracula_back/config
Normal file
457
polybar/.config/polybar/dracula_back/config
Normal file
@@ -0,0 +1,457 @@
|
|||||||
|
;==========================================================
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||||
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||||
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||||
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||||
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||||
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; To learn more about how to configure Polybar
|
||||||
|
; go to https://github.com/jaagr/polybar
|
||||||
|
;
|
||||||
|
; The README contains a lot of information
|
||||||
|
;
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
background = #282a36
|
||||||
|
foreground = #f8f8f2
|
||||||
|
background-alt = #99444444
|
||||||
|
foreground-alt = #f8f8f2
|
||||||
|
primary = #6e5991
|
||||||
|
secondary = #363949
|
||||||
|
alert = #bd2c40
|
||||||
|
|
||||||
|
[bar/barbase1]
|
||||||
|
monitor = HDMI-A-0
|
||||||
|
offset-y = -2
|
||||||
|
;width = 100%
|
||||||
|
height = 29
|
||||||
|
fixed-center = false
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
line-size = 3
|
||||||
|
line-color = #f00
|
||||||
|
border-size = 0
|
||||||
|
border-color = #00000000
|
||||||
|
padding-left = 0
|
||||||
|
padding-right = 2
|
||||||
|
module-margin-left = 1
|
||||||
|
module-margin-right = 2
|
||||||
|
font-0 = Ubuntu:pixelsize=10;1
|
||||||
|
font-1 = Source Han Sans JP:pixelsize=10;1
|
||||||
|
font-2 = siji:pixelsize=10;1
|
||||||
|
modules-left = ewmh
|
||||||
|
modules-center =
|
||||||
|
modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth battery date powermenu
|
||||||
|
tray-position = right
|
||||||
|
tray-padding = 2
|
||||||
|
cursor-click = pointer
|
||||||
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
|
|
||||||
|
[bar/barbase2]
|
||||||
|
monitor = eDP
|
||||||
|
offset-y = -2
|
||||||
|
;width = 100%
|
||||||
|
height = 29
|
||||||
|
fixed-center = false
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
line-size = 3
|
||||||
|
line-color = #f00
|
||||||
|
border-size = 0
|
||||||
|
border-color = #00000000
|
||||||
|
padding-left = 0
|
||||||
|
padding-right = 2
|
||||||
|
module-margin-left = 1
|
||||||
|
module-margin-right = 2
|
||||||
|
font-0 = Ubuntu:pixelsize=10;1
|
||||||
|
font-1 = Source Han Sans JP:pixelsize=10;1
|
||||||
|
font-2 = siji:pixelsize=10;1
|
||||||
|
modules-left = ewmh
|
||||||
|
modules-center =
|
||||||
|
modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth battery date powermenu
|
||||||
|
tray-position = right
|
||||||
|
tray-padding = 2
|
||||||
|
cursor-click = pointer
|
||||||
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
|
[module/ewmh]
|
||||||
|
type = internal/xworkspaces
|
||||||
|
pin-workspaces = false
|
||||||
|
enable-click = true
|
||||||
|
enable-scroll = false
|
||||||
|
icon-0 = 1;一
|
||||||
|
icon-1 = 2;二
|
||||||
|
icon-2 = 3;三
|
||||||
|
icon-3 = 4;四
|
||||||
|
icon-4 = 5;五
|
||||||
|
icon-5 = 6;六
|
||||||
|
icon-6 = 7;七
|
||||||
|
icon-7 = 8;八
|
||||||
|
icon-8 = 9;九
|
||||||
|
format = <label-state>
|
||||||
|
label-active = %icon%
|
||||||
|
label-active-foreground = ${colors.green}
|
||||||
|
label-active-background = #6e5991
|
||||||
|
label-active-padding = 1
|
||||||
|
label-occupied = %icon%
|
||||||
|
label-occupied-foreground = ${colors.blue}
|
||||||
|
label-occupied-background = #363949
|
||||||
|
label-occupied-padding = 1
|
||||||
|
label-urgent = %icon%
|
||||||
|
label-urgent-foreground = ${colors.red}
|
||||||
|
label-urgent-underline = #0000ff
|
||||||
|
label-urgent-padding = 1
|
||||||
|
label-empty = %icon%
|
||||||
|
label-empty-foreground = ${colors.fg}
|
||||||
|
label-empty-underline = ${colors.cyan}
|
||||||
|
label-empty-padding = 1
|
||||||
|
|
||||||
|
[module/xwindow]
|
||||||
|
type = internal/xwindow
|
||||||
|
label = %title:0:30:...%
|
||||||
|
|
||||||
|
[module/xkeyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
blacklist-0 = num lock
|
||||||
|
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-prefix-underline = ${colors.secondary}
|
||||||
|
|
||||||
|
label-layout = %layout%
|
||||||
|
label-layout-underline = ${colors.secondary}
|
||||||
|
|
||||||
|
label-indicator-padding = 2
|
||||||
|
label-indicator-margin = 1
|
||||||
|
label-indicator-background = ${colors.secondary}
|
||||||
|
label-indicator-underline = ${colors.secondary}
|
||||||
|
|
||||||
|
[module/filesystem]
|
||||||
|
type = internal/fs
|
||||||
|
interval = 25
|
||||||
|
|
||||||
|
mount-0 = /home
|
||||||
|
|
||||||
|
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||||
|
label-unmounted = %mountpoint% not mounted
|
||||||
|
label-unmounted-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
[module/bspwm]
|
||||||
|
type = internal/bspwm
|
||||||
|
|
||||||
|
label-focused = %index%
|
||||||
|
label-focused-background = ${colors.background-alt}
|
||||||
|
label-focused-underline= ${colors.primary}
|
||||||
|
label-focused-padding = 2
|
||||||
|
|
||||||
|
label-occupied = %index%
|
||||||
|
label-occupied-padding = 2
|
||||||
|
|
||||||
|
label-urgent = %index%!
|
||||||
|
label-urgent-background = ${colors.alert}
|
||||||
|
label-urgent-padding = 2
|
||||||
|
|
||||||
|
label-empty = %index%
|
||||||
|
label-empty-foreground = ${colors.foreground-alt}
|
||||||
|
label-empty-padding = 2
|
||||||
|
|
||||||
|
; Separator in between workspaces
|
||||||
|
; label-separator = |
|
||||||
|
|
||||||
|
[module/i3]
|
||||||
|
type = internal/i3
|
||||||
|
format = <label-state> <label-mode>
|
||||||
|
index-sort = true
|
||||||
|
wrapping-scroll = false
|
||||||
|
|
||||||
|
; Only show workspaces on the same output as the bar
|
||||||
|
;pin-workspaces = true
|
||||||
|
|
||||||
|
label-mode-padding = 2
|
||||||
|
label-mode-foreground = #000
|
||||||
|
label-mode-background = ${colors.primary}
|
||||||
|
|
||||||
|
; focused = Active workspace on focused monitor
|
||||||
|
label-focused = %index%
|
||||||
|
label-focused-background = ${module/bspwm.label-focused-background}
|
||||||
|
label-focused-underline = ${module/bspwm.label-focused-underline}
|
||||||
|
label-focused-padding = ${module/bspwm.label-focused-padding}
|
||||||
|
|
||||||
|
; unfocused = Inactive workspace on any monitor
|
||||||
|
label-unfocused = %index%
|
||||||
|
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
||||||
|
|
||||||
|
; visible = Active workspace on unfocused monitor
|
||||||
|
label-visible = %index%
|
||||||
|
label-visible-background = ${self.label-focused-background}
|
||||||
|
label-visible-underline = ${self.label-focused-underline}
|
||||||
|
label-visible-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
|
; urgent = Workspace with urgency hint set
|
||||||
|
label-urgent = %index%
|
||||||
|
label-urgent-background = ${module/bspwm.label-urgent-background}
|
||||||
|
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
||||||
|
|
||||||
|
; Separator in between workspaces
|
||||||
|
; label-separator = |
|
||||||
|
|
||||||
|
|
||||||
|
[module/mpd]
|
||||||
|
type = internal/mpd
|
||||||
|
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
||||||
|
|
||||||
|
icon-prev =
|
||||||
|
icon-stop =
|
||||||
|
icon-play =
|
||||||
|
icon-pause =
|
||||||
|
icon-next =
|
||||||
|
|
||||||
|
label-song-maxlen = 25
|
||||||
|
label-song-ellipsis = true
|
||||||
|
|
||||||
|
[module/xbacklight]
|
||||||
|
type = internal/xbacklight
|
||||||
|
|
||||||
|
format = <label> <bar>
|
||||||
|
label = BL
|
||||||
|
|
||||||
|
bar-width = 10
|
||||||
|
bar-indicator = |
|
||||||
|
bar-indicator-foreground = #fff
|
||||||
|
bar-indicator-font = 2
|
||||||
|
bar-fill = ─
|
||||||
|
bar-fill-font = 2
|
||||||
|
bar-fill-foreground = #9f78e1
|
||||||
|
bar-empty = ─
|
||||||
|
bar-empty-font = 2
|
||||||
|
bar-empty-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
[module/backlight-acpi]
|
||||||
|
inherit = module/xbacklight
|
||||||
|
type = internal/backlight
|
||||||
|
card = intel_backlight
|
||||||
|
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-underline = #f90000
|
||||||
|
label = %percentage:2%%
|
||||||
|
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-underline = #4bffdc
|
||||||
|
label = %percentage_used%%
|
||||||
|
|
||||||
|
[module/wlan]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlp2s0
|
||||||
|
interval = 3.0
|
||||||
|
|
||||||
|
format-connected = <ramp-signal> <label-connected>
|
||||||
|
format-connected-underline = #9f78e1
|
||||||
|
label-connected = %essid%
|
||||||
|
|
||||||
|
format-disconnected =
|
||||||
|
;format-disconnected = <label-disconnected>
|
||||||
|
;format-disconnected-underline = ${self.format-connected-underline}
|
||||||
|
;label-disconnected = %ifname% disconnected
|
||||||
|
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
ramp-signal-0 =
|
||||||
|
ramp-signal-1 =
|
||||||
|
ramp-signal-2 =
|
||||||
|
ramp-signal-3 =
|
||||||
|
ramp-signal-4 =
|
||||||
|
ramp-signal-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
[module/eth]
|
||||||
|
type = internal/network
|
||||||
|
interface = enp3s0
|
||||||
|
interval = 3.0
|
||||||
|
|
||||||
|
format-connected-underline = #55aa55
|
||||||
|
format-connected-prefix = " "
|
||||||
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
label-connected = %local_ip%
|
||||||
|
|
||||||
|
format-disconnected =
|
||||||
|
;format-disconnected = <label-disconnected>
|
||||||
|
;format-disconnected-underline = ${self.format-connected-underline}
|
||||||
|
;label-disconnected = %ifname% disconnected
|
||||||
|
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
date = %%{F#fff}%m/%d/%Y%%{F-} %%{F#fff}%I:%M %p%{F-}
|
||||||
|
date-alt = %%{F#fff}%A, %B %d, %Y %%{F#fff}%I:%M:%{F#666}%%{F#fba922}%S%%{F-} %p
|
||||||
|
;interval = 5
|
||||||
|
;date =
|
||||||
|
;date-alt = " %Y-%m-%d"
|
||||||
|
;time = %H:%M
|
||||||
|
;time-alt = %H:%M:%S
|
||||||
|
;format-prefix =
|
||||||
|
;format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
;format-underline = #0a6cf5
|
||||||
|
;label = %date% %time%
|
||||||
|
|
||||||
|
[module/pulseaudio]
|
||||||
|
type = internal/pulseaudio
|
||||||
|
format-volume = <label-volume> <bar-volume>
|
||||||
|
label-volume = VOL %percentage%%
|
||||||
|
label-volume-foreground = ${root.foreground}
|
||||||
|
|
||||||
|
label-muted = 🔇 muted
|
||||||
|
label-muted-foreground = #666
|
||||||
|
|
||||||
|
bar-volume-width = 10
|
||||||
|
bar-volume-foreground-0 = #55aa55
|
||||||
|
bar-volume-foreground-1 = #55aa55
|
||||||
|
bar-volume-foreground-2 = #55aa55
|
||||||
|
bar-volume-foreground-3 = #55aa55
|
||||||
|
bar-volume-foreground-4 = #55aa55
|
||||||
|
bar-volume-foreground-5 = #f5a70a
|
||||||
|
bar-volume-foreground-6 = #ff5555
|
||||||
|
bar-volume-gradient = false
|
||||||
|
bar-volume-indicator = |
|
||||||
|
bar-volume-indicator-font = 2
|
||||||
|
bar-volume-fill = ─
|
||||||
|
bar-volume-fill-font = 2
|
||||||
|
bar-volume-empty = ─
|
||||||
|
bar-volume-empty-font = 2
|
||||||
|
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||||
|
interval = 1
|
||||||
|
|
||||||
|
|
||||||
|
[module/alsa]
|
||||||
|
type = internal/alsa
|
||||||
|
|
||||||
|
format-volume = <label-volume> <bar-volume>
|
||||||
|
label-volume = VOL
|
||||||
|
label-volume-foreground = ${root.foreground}
|
||||||
|
|
||||||
|
format-muted-prefix = " "
|
||||||
|
format-muted-foreground = ${colors.foreground-alt}
|
||||||
|
label-muted = muted
|
||||||
|
|
||||||
|
bar-volume-width = 10
|
||||||
|
bar-volume-foreground-0 = #55aa55
|
||||||
|
bar-volume-foreground-1 = #55aa55
|
||||||
|
bar-volume-foreground-2 = #55aa55
|
||||||
|
bar-volume-foreground-3 = #55aa55
|
||||||
|
bar-volume-foreground-4 = #55aa55
|
||||||
|
bar-volume-foreground-5 = #f5a70a
|
||||||
|
bar-volume-foreground-6 = #ff5555
|
||||||
|
bar-volume-gradient = false
|
||||||
|
bar-volume-indicator = |
|
||||||
|
bar-volume-indicator-font = 2
|
||||||
|
bar-volume-fill = ─
|
||||||
|
bar-volume-fill-font = 2
|
||||||
|
bar-volume-empty = ─
|
||||||
|
bar-volume-empty-font = 2
|
||||||
|
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
battery = BAT0
|
||||||
|
adapter = AC
|
||||||
|
full-at = 98
|
||||||
|
|
||||||
|
format-charging = <animation-charging> <label-charging>
|
||||||
|
format-charging-underline = #ffb52a
|
||||||
|
|
||||||
|
format-discharging = <animation-discharging> <label-discharging>
|
||||||
|
format-discharging-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
|
format-full-prefix = " "
|
||||||
|
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-full-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
|
ramp-capacity-0 =
|
||||||
|
ramp-capacity-1 =
|
||||||
|
ramp-capacity-2 =
|
||||||
|
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
animation-charging-0 =
|
||||||
|
animation-charging-1 =
|
||||||
|
animation-charging-2 =
|
||||||
|
animation-charging-foreground = ${colors.foreground-alt}
|
||||||
|
animation-charging-framerate = 750
|
||||||
|
|
||||||
|
animation-discharging-0 =
|
||||||
|
animation-discharging-1 =
|
||||||
|
animation-discharging-2 =
|
||||||
|
animation-discharging-foreground = ${colors.foreground-alt}
|
||||||
|
animation-discharging-framerate = 750
|
||||||
|
|
||||||
|
[module/temperature]
|
||||||
|
type = internal/temperature
|
||||||
|
thermal-zone = 0
|
||||||
|
warn-temperature = 60
|
||||||
|
|
||||||
|
format = <ramp> <label>
|
||||||
|
format-underline = #f50a4d
|
||||||
|
format-warn = <ramp> <label-warn>
|
||||||
|
format-warn-underline = ${self.format-underline}
|
||||||
|
|
||||||
|
label = %temperature-c%
|
||||||
|
label-warn = %temperature-c%
|
||||||
|
label-warn-foreground = ${colors.secondary}
|
||||||
|
|
||||||
|
ramp-0 =
|
||||||
|
ramp-1 =
|
||||||
|
ramp-2 =
|
||||||
|
ramp-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
[module/powermenu]
|
||||||
|
type = custom/menu
|
||||||
|
|
||||||
|
expand-right = true
|
||||||
|
|
||||||
|
format-spacing = 1
|
||||||
|
|
||||||
|
label-open =
|
||||||
|
label-open-foreground = ${colors.foreground}
|
||||||
|
label-close = cancel
|
||||||
|
label-close-foreground = ${colors.forground}
|
||||||
|
label-separator = |
|
||||||
|
label-separator-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
menu-0-0 = reboot
|
||||||
|
menu-0-0-exec = menu-open-1
|
||||||
|
menu-0-1 = power off
|
||||||
|
menu-0-1-exec = menu-open-2
|
||||||
|
|
||||||
|
menu-1-0 = cancel
|
||||||
|
menu-1-0-exec = menu-open-0
|
||||||
|
menu-1-1 = reboot
|
||||||
|
menu-1-1-exec = sudo reboot
|
||||||
|
|
||||||
|
menu-2-0 = power off
|
||||||
|
menu-2-0-exec = sudo poweroff
|
||||||
|
menu-2-1 = cancel
|
||||||
|
menu-2-1-exec = menu-open-0
|
||||||
|
|
||||||
|
[settings]
|
||||||
|
screenchange-reload = true
|
||||||
|
;compositing-background = xor
|
||||||
|
;compositing-background = screen
|
||||||
|
;compositing-foreground = source
|
||||||
|
;compositing-border = over
|
||||||
|
;pseudo-transparency = false
|
||||||
|
|
||||||
|
;[global/wm]
|
||||||
|
;margin-top = 5
|
||||||
|
;margin-bottom = 5
|
||||||
|
|
||||||
|
; vim:ft=dosini
|
||||||
4
polybar/.config/polybar/launch.sh
Executable file
4
polybar/.config/polybar/launch.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
killall polybar
|
||||||
|
polybar -c $HOME/.config/bspwm/polybar/config.ini mainbar &
|
||||||
586
polybar/.config/polybar/modules/modules.ini
Normal file
586
polybar/.config/polybar/modules/modules.ini
Normal file
@@ -0,0 +1,586 @@
|
|||||||
|
[module/layout]
|
||||||
|
type = custom/script
|
||||||
|
exec = cat $HOME/.config/bspwm/scripts/current_layout
|
||||||
|
click-left = $HOME/.config/bspwm/scripts/switch_layouts
|
||||||
|
interval = 0
|
||||||
|
format = <label>
|
||||||
|
label = "%output%"
|
||||||
|
format-foreground = ${colors.blue}
|
||||||
|
format-background = ${colors.black}
|
||||||
|
format-padding = 0
|
||||||
|
|
||||||
|
[module/spotify-track]
|
||||||
|
type = custom/script
|
||||||
|
interval = 1
|
||||||
|
exec = $HOME/.config/bspwm/polybar/scripts/spotify.py -f '{song}' | awk '{print toupper($0)}'
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-padding = 0
|
||||||
|
format-foreground = ${colors.cyan}
|
||||||
|
format-background = ${colors.black}
|
||||||
|
|
||||||
|
label = %output%
|
||||||
|
label-maxlen = 45
|
||||||
|
|
||||||
|
click-left = playerctl -p spotify play-pause
|
||||||
|
scroll-up = playerctl -p spotify next
|
||||||
|
scroll-down = playerctl -p spotify previous
|
||||||
|
|
||||||
|
|
||||||
|
[module/spotify-artist]
|
||||||
|
type = custom/script
|
||||||
|
interval = 1
|
||||||
|
exec = $HOME/.config/bspwm/polybar/scripts/spotify.py -f '{artist} ' | awk '{print toupper($0)}'
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-padding = 0
|
||||||
|
format-foreground = ${colors.pink}
|
||||||
|
format-background = ${colors.black}
|
||||||
|
|
||||||
|
label = %output%
|
||||||
|
label-maxlen = 45
|
||||||
|
|
||||||
|
click-left = playerctl -p spotify play-pause
|
||||||
|
scroll-up = playerctl -p spotify next
|
||||||
|
scroll-down = playerctl -p spotify previous
|
||||||
|
|
||||||
|
[module/temperature]
|
||||||
|
type = internal/temperature
|
||||||
|
|
||||||
|
; Seconds to sleep between updates
|
||||||
|
; Default: 1
|
||||||
|
interval = 0.5
|
||||||
|
|
||||||
|
; Thermal zone to use
|
||||||
|
; To list all the zone types, run
|
||||||
|
; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
|
||||||
|
; Default: 0
|
||||||
|
thermal-zone = 0
|
||||||
|
|
||||||
|
; Full path of temperature sysfs path
|
||||||
|
; Use `sensors` to find preferred temperature source, then run
|
||||||
|
; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
|
||||||
|
; to find path to desired file
|
||||||
|
; Default reverts to thermal zone setting
|
||||||
|
hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1_input
|
||||||
|
|
||||||
|
label-background = ${colors.black}
|
||||||
|
|
||||||
|
label-foreground = ${colors.blue}
|
||||||
|
|
||||||
|
|
||||||
|
[module/sep]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.background}
|
||||||
|
content-background = ${colors.background}
|
||||||
|
content = " "
|
||||||
|
content-font = 2
|
||||||
|
|
||||||
|
[module/sep1]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.black}
|
||||||
|
content-background = ${colors.black}
|
||||||
|
content = " "
|
||||||
|
content-font = 2
|
||||||
|
|
||||||
|
|
||||||
|
[module/left1]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.black}
|
||||||
|
content = ""
|
||||||
|
offset-y = -5
|
||||||
|
content-font = 2
|
||||||
|
|
||||||
|
[module/left2]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.black}
|
||||||
|
content = ""
|
||||||
|
content-font = 2
|
||||||
|
|
||||||
|
[module/medium1]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.black}
|
||||||
|
content = " "
|
||||||
|
content-font = 2
|
||||||
|
|
||||||
|
[module/medium2]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.black}
|
||||||
|
content = ""
|
||||||
|
content-font = 2
|
||||||
|
|
||||||
|
[module/right1]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.black}
|
||||||
|
content = ""
|
||||||
|
content-font = 2
|
||||||
|
|
||||||
|
[module/right2]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.black}
|
||||||
|
content = ""
|
||||||
|
content-font = 2
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/appmenu]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.blue}
|
||||||
|
content-background = ${colors.black}
|
||||||
|
content = "異"
|
||||||
|
content-font = 2
|
||||||
|
click-left = exec $HOME/.config/bspwm/rofi/launch.sh
|
||||||
|
|
||||||
|
[module/term]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.red}
|
||||||
|
content-background = ${colors.black}
|
||||||
|
content = " "
|
||||||
|
click-left = exec kitty
|
||||||
|
content-font = 6
|
||||||
|
[module/thunar]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.pink}
|
||||||
|
content-background = ${colors.black}
|
||||||
|
content = " "
|
||||||
|
click-left = exec pcmanfm
|
||||||
|
content-font = 6
|
||||||
|
[module/firefox]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.orange}
|
||||||
|
content-background = ${colors.black}
|
||||||
|
content = " "
|
||||||
|
click-left = exec firefox
|
||||||
|
content-font = 6
|
||||||
|
[module/discord]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.blue}
|
||||||
|
content-background = ${colors.black}
|
||||||
|
content = "ﭮ "
|
||||||
|
click-left = exec discord
|
||||||
|
content-font = 6
|
||||||
|
[module/launch-spotify]
|
||||||
|
type = custom/text
|
||||||
|
content-foreground = ${colors.green}
|
||||||
|
content-background = ${colors.black}
|
||||||
|
content = " "
|
||||||
|
click-left = exec spotify
|
||||||
|
content-font = 6
|
||||||
|
|
||||||
|
[module/dot]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-foreground = ${colors.black}
|
||||||
|
content-background = ${colors.background}
|
||||||
|
content-font = 6
|
||||||
|
|
||||||
|
[module/dot-alt]
|
||||||
|
inherit = module/dot
|
||||||
|
content-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
[module/dot-alt2]
|
||||||
|
inherit = module/dot-alt
|
||||||
|
content-background = ${colors.black}
|
||||||
|
|
||||||
|
[module/ewmh]
|
||||||
|
type = internal/xworkspaces
|
||||||
|
pin-workspaces = false
|
||||||
|
enable-click = true
|
||||||
|
enable-scroll = false
|
||||||
|
icon-0 = 1;一
|
||||||
|
icon-1 = 2;二
|
||||||
|
icon-2 = 3;三
|
||||||
|
icon-3 = 4;四
|
||||||
|
icon-4 = 5;五
|
||||||
|
icon-5 = 6;六
|
||||||
|
icon-6 = 7;七
|
||||||
|
icon-7 = 8;八
|
||||||
|
icon-8 = 9;九
|
||||||
|
format = <label-state>
|
||||||
|
label-active = %icon%
|
||||||
|
label-active-foreground = ${colors.yellow}
|
||||||
|
label-active-background = #bd93f9
|
||||||
|
label-active-padding = 1
|
||||||
|
label-occupied = %icon%
|
||||||
|
label-occupied-foreground = ${colors.blue}
|
||||||
|
label-occupied-background = ${colors.black}
|
||||||
|
label-occupied-padding = 1
|
||||||
|
label-urgent = %icon%
|
||||||
|
label-urgent-foreground = ${colors.red}
|
||||||
|
label-urgent-padding = 1
|
||||||
|
label-empty = %icon%
|
||||||
|
label-empty-foreground = ${colors.fg}
|
||||||
|
label-empty-padding = 1
|
||||||
|
|
||||||
|
|
||||||
|
;[module/bspwm]
|
||||||
|
;type = internal/bspwm
|
||||||
|
;ws-icon-0 = 1;%{F#FAE3B0}
|
||||||
|
;ascii_distro="arcolinux_small"
|
||||||
|
;ws-icon-1 = 2;%{F#96CDFB}
|
||||||
|
;ws-icon-2 = 3;%{F#F28FAD}
|
||||||
|
;ws-icon-3 = 4;%{F#ABE9B3}
|
||||||
|
;ws-icon-4 = 5;%{F#96CDFB}
|
||||||
|
;ws-icon-5 = 6;%{F#FAE3B0}
|
||||||
|
;ws-icon-6 = 7;%{F#ABE9B3}磊
|
||||||
|
;
|
||||||
|
;label-focused =
|
||||||
|
;label-focused-background = ${colors.black}
|
||||||
|
;#label-focused-underline= ${colors.cyan}
|
||||||
|
;label-focused-foreground = ${colors.yellow}
|
||||||
|
;#label-focused-underline = ${colors.primary}
|
||||||
|
;label-focused-padding = 1
|
||||||
|
;
|
||||||
|
;label-occupied =
|
||||||
|
;label-occupied-background = ${colors.black}
|
||||||
|
;label-occupied-foreground = ${colors.blue}
|
||||||
|
;#label-occupied-underline = ${colors.secondary}
|
||||||
|
;label-occupied-padding = 1
|
||||||
|
;
|
||||||
|
;label-urgent = %icon%
|
||||||
|
;label-urgent-background = ${colors.black}
|
||||||
|
;label-urgent-foreground = ${colors.orange}
|
||||||
|
;label-urgent-underline = ${colors.red}
|
||||||
|
;label-urgent-padding = 1
|
||||||
|
;
|
||||||
|
;label-empty =
|
||||||
|
;label-empty-background = ${colors.black}
|
||||||
|
;label-empty-foreground = ${colors.white}
|
||||||
|
;label-empty-padding = 1
|
||||||
|
;
|
||||||
|
;
|
||||||
|
;; Separator in between workspaces
|
||||||
|
;label-separator =
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/i3]
|
||||||
|
type = internal/i3
|
||||||
|
format = <label-state> <label-mode>
|
||||||
|
index-sort = true
|
||||||
|
wrapping-scroll = false
|
||||||
|
|
||||||
|
; Only show workspaces on the same output as the bar
|
||||||
|
;pin-workspaces = true
|
||||||
|
|
||||||
|
label-mode-padding = 2
|
||||||
|
label-mode-foreground =
|
||||||
|
label-mode-background = ${colors.primary}
|
||||||
|
|
||||||
|
; focused = Active workspace on focused monitor
|
||||||
|
label-focused = %index%
|
||||||
|
label-focused-background = ${module/bspwm.label-focused-background}
|
||||||
|
label-focused-underline = ${module/bspwm.label-focused-underline}
|
||||||
|
label-focused-padding = ${module/bspwm.label-focused-padding}
|
||||||
|
|
||||||
|
; unfocused = Inactive workspace on any monitor
|
||||||
|
label-unfocused = %index%
|
||||||
|
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
||||||
|
|
||||||
|
; visible = Active workspace on unfocused monitor
|
||||||
|
label-visible = %index%
|
||||||
|
label-visible-background = ${self.label-focused-background}
|
||||||
|
label-visible-underline = ${self.label-focused-underline}
|
||||||
|
label-visible-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
|
; urgent = Workspace with urgency hint set
|
||||||
|
label-urgent = %index%
|
||||||
|
label-urgent-background = ${module/bspwm.label-urgent-background}
|
||||||
|
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
||||||
|
|
||||||
|
; Separator in between workspaces
|
||||||
|
; label-separator = |
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; Openbox Workspaces ;;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/workspaces]
|
||||||
|
type = internal/xworkspaces
|
||||||
|
pin-workspaces = false
|
||||||
|
enable-click = true
|
||||||
|
enable-scroll = true
|
||||||
|
|
||||||
|
format-padding = 0
|
||||||
|
format = <label-state>
|
||||||
|
|
||||||
|
label-active = %name%
|
||||||
|
label-active-padding = 2
|
||||||
|
label-active-foreground = ${colors.background}
|
||||||
|
label-active-background = ${colors.pink}
|
||||||
|
label-active-underline = ${colors.background}
|
||||||
|
|
||||||
|
label-occupied = %name%
|
||||||
|
label-occupied-padding = 2
|
||||||
|
label-occupied-underline = ${colors.foreground}
|
||||||
|
label-occupied-background = ${colors.background}
|
||||||
|
|
||||||
|
label-urgent = %name%
|
||||||
|
label-urgent-padding = 2
|
||||||
|
label-urgent-foreground = ${colors.foreground}
|
||||||
|
label-urgent-background = ${colors.magenta}
|
||||||
|
label-urgent-underline = ${colors.background}
|
||||||
|
|
||||||
|
label-empty = %name%
|
||||||
|
label-empty-padding = 2
|
||||||
|
label-empty-foreground = ${colors.foreground}
|
||||||
|
label-empty-background = ${colors.background}
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
[module/notification-center]
|
||||||
|
type = custom/script
|
||||||
|
exec = echo
|
||||||
|
interval = 100
|
||||||
|
label = " %output% "
|
||||||
|
|
||||||
|
;format-background = ${colors.white}
|
||||||
|
format-foreground = ${colors.white}
|
||||||
|
|
||||||
|
click-left = $HOME/.scripts/rofi_notif_center.sh
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;
|
||||||
|
[module/kernel-name]
|
||||||
|
type = custom/script
|
||||||
|
exec = uname -r
|
||||||
|
interval = 10000
|
||||||
|
label = " %output% "
|
||||||
|
format-foreground = ${colors.white}
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
[module/filesystem]
|
||||||
|
type = internal/fs
|
||||||
|
|
||||||
|
|
||||||
|
; Mountpoints to display
|
||||||
|
mount-0 = /
|
||||||
|
|
||||||
|
; Seconds to sleep between updates
|
||||||
|
; Default: 30
|
||||||
|
interval = 10
|
||||||
|
|
||||||
|
; Display fixed precision values
|
||||||
|
; Default: false
|
||||||
|
fixed-values = true
|
||||||
|
|
||||||
|
; Spacing between entries
|
||||||
|
; Default: 2
|
||||||
|
spacing = 4
|
||||||
|
|
||||||
|
; Available tags:
|
||||||
|
; <label-mounted> (default)
|
||||||
|
; <bar-free>
|
||||||
|
; <bar-used>
|
||||||
|
; <ramp-capacity>
|
||||||
|
format-mounted = <label-mounted>
|
||||||
|
|
||||||
|
; Available tags:
|
||||||
|
; <label-unmounted> (default)
|
||||||
|
format-unmounted = <label-unmounted>
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %mountpoint%
|
||||||
|
; %type%
|
||||||
|
; %fsname%
|
||||||
|
; %percentage_free%
|
||||||
|
; %percentage_used%
|
||||||
|
; %total%
|
||||||
|
; %free%
|
||||||
|
; %used%
|
||||||
|
; Default: %mountpoint% %percentage_free%%
|
||||||
|
label-mounted = " %percentage_used%%"
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %mountpoint%
|
||||||
|
; Default: %mountpoint% is not mounted
|
||||||
|
label-unmounted = %mountpoint%: not mounted
|
||||||
|
label-unmounted-foreground = #55
|
||||||
|
label-unmounted-background = ${colors.black}
|
||||||
|
label-mounted-background = ${colors.black}
|
||||||
|
|
||||||
|
label-mounted-foreground = ${colors.magenta}
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
[module/pacman-updates]
|
||||||
|
type = custom/script
|
||||||
|
exec = checkupdates 2>/dev/null | wc -l || echo "0"
|
||||||
|
interval = 1000
|
||||||
|
label = " %output%"
|
||||||
|
format-foreground = ${colors.green}
|
||||||
|
format-foreground-error = ${colors.red}
|
||||||
|
format-background = ${colors.black}
|
||||||
|
click-left = alacritty -e $SHELL -c 'paru'
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/windowtitle]
|
||||||
|
type = internal/xwindow
|
||||||
|
format = <label>
|
||||||
|
format-background = ${colors.black}
|
||||||
|
format-foreground = ${colors.blue}
|
||||||
|
format-padding = 1
|
||||||
|
label = " %title%"
|
||||||
|
label-maxlen = 34
|
||||||
|
label-empty = " Desktop"
|
||||||
|
label-separator = " "
|
||||||
|
label-empty-foreground = ${colors.blue}
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/volume]
|
||||||
|
type = internal/pulseaudio
|
||||||
|
format-volume = " <ramp-volume><label-volume>"
|
||||||
|
ramp-volume-0 =" "
|
||||||
|
ramp-volume-0-foreground = ${colors.green}
|
||||||
|
ramp-volume-1 ="墳 "
|
||||||
|
ramp-volume-foreground = ${colors.yellow}
|
||||||
|
ramp-volume-2 ="墳 "
|
||||||
|
ramp-volume-2-foreground = ${colors.red}
|
||||||
|
format-volume-background = ${colors.black}
|
||||||
|
format-volume-padding = 0
|
||||||
|
|
||||||
|
format-muted = <label-muted>
|
||||||
|
format-muted-background = ${colors.black}
|
||||||
|
format-muted-foreground = ${colors.white}
|
||||||
|
label-muted =" Muted"
|
||||||
|
label-volume-foreground = ${colors.white}
|
||||||
|
click-right = pavucontrol
|
||||||
|
|
||||||
|
label-volume = %percentage%%
|
||||||
|
|
||||||
|
|
||||||
|
bar-volume-width = 10
|
||||||
|
bar-volume-gradient = false
|
||||||
|
|
||||||
|
bar-volume-indicator = 雷
|
||||||
|
bar-volume-indicator-font = 8
|
||||||
|
bar-volume-indicator-foreground = ${colors.blue}
|
||||||
|
|
||||||
|
bar-volume-fill = 絛
|
||||||
|
bar-volume-fill-font = 8
|
||||||
|
bar-volume-foreground-0 = ${colors.blue}
|
||||||
|
bar-volume-foreground-1 = ${colors.blue}
|
||||||
|
bar-volume-foreground-2 = ${colors.blue}
|
||||||
|
bar-volume-foreground-3 = ${colors.blue}
|
||||||
|
bar-volume-foreground-4 = ${colors.blue}
|
||||||
|
|
||||||
|
bar-volume-empty = 絛
|
||||||
|
bar-volume-empty-font = 8
|
||||||
|
bar-volume-empty-foreground = ${colors.black}
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
battery = BAT0
|
||||||
|
adapter = ADP1
|
||||||
|
full-at = 100
|
||||||
|
|
||||||
|
format-charging = <label-charging>
|
||||||
|
format-charging-prefix = ""
|
||||||
|
format-charging-prefix-font = 2
|
||||||
|
label-charging = "%percentage%%"
|
||||||
|
|
||||||
|
format-discharging = <label-discharging>
|
||||||
|
label-discharging = "%percentage%%"
|
||||||
|
format-discharging-prefix = ""
|
||||||
|
format-discharging-prefix-font = 2
|
||||||
|
|
||||||
|
format-discharging-background = ${colors.black}
|
||||||
|
format-discharging-foreground = ${colors.yellow}
|
||||||
|
|
||||||
|
format-charging-background = ${colors.black}
|
||||||
|
format-charging-foreground = ${colors.yellow}
|
||||||
|
|
||||||
|
label-full = " %percentage%%"
|
||||||
|
format-full-background = ${colors.black}
|
||||||
|
format-full-foreground = ${colors.green}
|
||||||
|
format-full-prefix-font = 1
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/network]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlp1s0
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-connected-prefix = ""
|
||||||
|
format-connected-prefix-font = 1
|
||||||
|
label-connected = " %essid%"
|
||||||
|
label-connected-font = 1
|
||||||
|
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
format-disconnected-prefix =
|
||||||
|
format-disconnected-prefix-font = 1
|
||||||
|
label-disconnected = " Disconnected"
|
||||||
|
label-disconnected-font = 1
|
||||||
|
|
||||||
|
format-connected-background = ${colors.background}
|
||||||
|
format-connected-foreground = ${colors.cyan}
|
||||||
|
format-disconnected-background = ${colors.background}
|
||||||
|
format-disconnected-foreground = ${colors.red}
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
; Seconds to sleep between updates
|
||||||
|
interval = 3
|
||||||
|
|
||||||
|
label = " %percentage_used:2%%"
|
||||||
|
|
||||||
|
format-prefix-padding = 2
|
||||||
|
format-prefix-font = 2
|
||||||
|
format-prefix-foreground = #ffffff
|
||||||
|
format-background = ${colors.black}
|
||||||
|
format-foreground = ${colors.red}
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
[module/wired-network]
|
||||||
|
type = internal/network
|
||||||
|
interface = eno1
|
||||||
|
interval = 3.0
|
||||||
|
|
||||||
|
accumulate-stats = true
|
||||||
|
unknown-as-up = true
|
||||||
|
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
|
||||||
|
label-connected = " %downspeed%"
|
||||||
|
label-connected-foreground = ${colors.cyan}
|
||||||
|
label-connected-background = ${colors.black}
|
||||||
|
|
||||||
|
label-disconnected = ""
|
||||||
|
label-disconnected-foreground = ${colors.cyan}
|
||||||
|
label-disconnected-background = ${colors.black}
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
|
||||||
|
interval = 1
|
||||||
|
format = <label>
|
||||||
|
label = " %percentage%%"
|
||||||
|
|
||||||
|
format-background = ${colors.black}
|
||||||
|
format-foreground = ${colors.orange}
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
interval = 1
|
||||||
|
|
||||||
|
date =
|
||||||
|
date-alt = "﨟 %A, %b %d -"
|
||||||
|
|
||||||
|
time-alt = " %H:%M "
|
||||||
|
time = " %I:%M %p "
|
||||||
|
|
||||||
|
;format-prefix = ""
|
||||||
|
format-prefix-padding = 1
|
||||||
|
format-prefix-font = 1
|
||||||
|
format-prefix-foreground = #ffffff
|
||||||
|
format-background = ${colors.black}
|
||||||
|
format-foreground = ${colors.blue}
|
||||||
|
|
||||||
|
label = %date% %time%
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
[module/powermenu]
|
||||||
|
type = custom/text
|
||||||
|
content = ""
|
||||||
|
content-font = 2
|
||||||
|
content-background = ${colors.black}
|
||||||
|
content-foreground = ${colors.red}
|
||||||
|
click-left = $HOME/.config/bspwm/rofi/theme.sh
|
||||||
52
polybar/.config/polybar/scripts/get_spotify_status.sh
Executable file
52
polybar/.config/polybar/scripts/get_spotify_status.sh
Executable file
@@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# The name of polybar bar which houses the main spotify module and the control modules.
|
||||||
|
PARENT_BAR="example"
|
||||||
|
PARENT_BAR_PID=$(pgrep -a "polybar" | grep "$PARENT_BAR" | cut -d" " -f1)
|
||||||
|
|
||||||
|
# Set the source audio player here.
|
||||||
|
# Players supporting the MPRIS spec are supported.
|
||||||
|
# Examples: spotify, vlc, chrome, mpv and others.
|
||||||
|
# Use `playerctld` to always detect the latest player.
|
||||||
|
# See more here: https://github.com/altdesktop/playerctl/#selecting-players-to-control
|
||||||
|
PLAYER="playerctld"
|
||||||
|
|
||||||
|
# Format of the information displayed
|
||||||
|
# Eg. {{ artist }} - {{ album }} - {{ title }}
|
||||||
|
# See more attributes here: https://github.com/altdesktop/playerctl/#printing-properties-and-metadata
|
||||||
|
FORMAT="{{ title }} - {{ artist }}"
|
||||||
|
|
||||||
|
# Sends $2 as message to all polybar PIDs that are part of $1
|
||||||
|
update_hooks() {
|
||||||
|
while IFS= read -r id
|
||||||
|
do
|
||||||
|
polybar-msg -p "$id" hook spotify-play-pause $2 1>/dev/null 2>&1
|
||||||
|
done < <(echo "$1")
|
||||||
|
}
|
||||||
|
|
||||||
|
PLAYERCTL_STATUS=$(playerctl --player=$PLAYER status 2>/dev/null)
|
||||||
|
EXIT_CODE=$?
|
||||||
|
|
||||||
|
if [ $EXIT_CODE -eq 0 ]; then
|
||||||
|
STATUS=$PLAYERCTL_STATUS
|
||||||
|
else
|
||||||
|
STATUS="No player is running"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "--status" ]; then
|
||||||
|
echo "$STATUS"
|
||||||
|
else
|
||||||
|
if [ "$STATUS" = "Stopped" ]; then
|
||||||
|
echo "No music is playing"
|
||||||
|
elif [ "$STATUS" = "Paused" ]; then
|
||||||
|
update_hooks "$PARENT_BAR_PID" 2
|
||||||
|
playerctl --player=$PLAYER metadata --format "$FORMAT"
|
||||||
|
elif [ "$STATUS" = "No player is running" ]; then
|
||||||
|
echo "$STATUS"
|
||||||
|
else
|
||||||
|
update_hooks "$PARENT_BAR_PID" 1
|
||||||
|
playerctl --player=$PLAYER metadata --format "$FORMAT"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
76
polybar/.config/polybar/scripts/info-cava.py
Normal file
76
polybar/.config/polybar/scripts/info-cava.py
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
#!/bin/env python3
|
||||||
|
import argparse
|
||||||
|
import os
|
||||||
|
import signal
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import tempfile
|
||||||
|
|
||||||
|
if len(sys.argv) > 1 and sys.argv[1] == '--subproc':
|
||||||
|
ramp_list = [' ', '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█']
|
||||||
|
ramp_list.extend(
|
||||||
|
f'%{{F#{color.strip(" #")}}}█%{{F-}}'
|
||||||
|
for color in sys.argv[2].split(',')
|
||||||
|
if color
|
||||||
|
)
|
||||||
|
while True:
|
||||||
|
cava_input = input().strip().split()
|
||||||
|
cava_input = [int(i) for i in cava_input]
|
||||||
|
output = ''
|
||||||
|
for bar in cava_input:
|
||||||
|
if bar < len(ramp_list):
|
||||||
|
output += ramp_list[bar]
|
||||||
|
|
||||||
|
else:
|
||||||
|
output += ramp_list[-1]
|
||||||
|
|
||||||
|
print(output)
|
||||||
|
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument('-f', '--framerate', type=int, default=60,
|
||||||
|
help='Framerate to be used by cava, default is 60')
|
||||||
|
parser.add_argument('-b', '--bars', type=int, default=8,
|
||||||
|
help='Amount of bars, default is 8')
|
||||||
|
parser.add_argument('-e', '--extra_colors', default='fdd,fcc,fbb,faa',
|
||||||
|
help='Color gradient used on higher values, separated by commas, default is')
|
||||||
|
parser.add_argument('-c', '--channels', choices=['stereo', 'left', 'right', 'average'],
|
||||||
|
help='Audio channels to be used, defaults to stereo')
|
||||||
|
|
||||||
|
opts = parser.parse_args()
|
||||||
|
conf_channels = ''
|
||||||
|
if opts.channels != 'stereo':
|
||||||
|
conf_channels = (
|
||||||
|
'channels=mono\n'
|
||||||
|
f'mono_option={opts.channels}'
|
||||||
|
)
|
||||||
|
|
||||||
|
conf_ascii_max_range = 12 + len([i for i in opts.extra_colors.split(',') if i])
|
||||||
|
|
||||||
|
cava_conf = tempfile.mkstemp('','polybar-cava-conf.')[1]
|
||||||
|
with open(cava_conf, 'w') as cava_conf_file:
|
||||||
|
cava_conf_file.write(
|
||||||
|
'[general]\n'
|
||||||
|
f'framerate={opts.framerate}\n'
|
||||||
|
f'bars={opts.bars}\n'
|
||||||
|
'[output]\n'
|
||||||
|
'method=raw\n'
|
||||||
|
'data_format=ascii\n'
|
||||||
|
f'ascii_max_range={conf_ascii_max_range}\n'
|
||||||
|
'bar_delimiter=32'
|
||||||
|
+ conf_channels
|
||||||
|
)
|
||||||
|
|
||||||
|
cava_proc = subprocess.Popen(['cava', '-p', cava_conf], stdout=subprocess.PIPE)
|
||||||
|
self_proc = subprocess.Popen(['python3', __file__, '--subproc', opts.extra_colors], stdin=cava_proc.stdout)
|
||||||
|
|
||||||
|
def cleanup(sig, frame):
|
||||||
|
os.remove(cava_conf)
|
||||||
|
cava_proc.kill()
|
||||||
|
self_proc.kill()
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
signal.signal(signal.SIGTERM, cleanup)
|
||||||
|
signal.signal(signal.SIGINT, cleanup)
|
||||||
|
|
||||||
|
self_proc.wait()
|
||||||
|
|
||||||
12
polybar/.config/polybar/scripts/scroll_spotify_status.sh
Executable file
12
polybar/.config/polybar/scripts/scroll_spotify_status.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# see man zscroll for documentation of the following parameters
|
||||||
|
zscroll -l 30 \
|
||||||
|
--delay 0.1 \
|
||||||
|
--scroll-padding " " \
|
||||||
|
--match-command "`dirname $0`/get_spotify_status.sh --status" \
|
||||||
|
--match-text "Playing" "--scroll 1" \
|
||||||
|
--match-text "Paused" "--scroll 0" \
|
||||||
|
--update-check true "`dirname $0`/get_spotify_status.sh" &
|
||||||
|
|
||||||
|
wait
|
||||||
149
polybar/.config/polybar/scripts/spotify.py
Executable file
149
polybar/.config/polybar/scripts/spotify.py
Executable file
@@ -0,0 +1,149 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import dbus
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument(
|
||||||
|
'-t',
|
||||||
|
'--trunclen',
|
||||||
|
type=int,
|
||||||
|
metavar='trunclen'
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'-f',
|
||||||
|
'--format',
|
||||||
|
type=str,
|
||||||
|
metavar='custom format',
|
||||||
|
dest='custom_format'
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'-p',
|
||||||
|
'--playpause',
|
||||||
|
type=str,
|
||||||
|
metavar='play-pause indicator',
|
||||||
|
dest='play_pause'
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'--font',
|
||||||
|
type=str,
|
||||||
|
metavar='the index of the font to use for the main label',
|
||||||
|
dest='font'
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'--playpause-font',
|
||||||
|
type=str,
|
||||||
|
metavar='the index of the font to use to display the playpause indicator',
|
||||||
|
dest='play_pause_font'
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'-q',
|
||||||
|
'--quiet',
|
||||||
|
action='store_true',
|
||||||
|
help="if set, don't show any output when the current song is paused",
|
||||||
|
dest='quiet',
|
||||||
|
)
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
|
def fix_string(string):
|
||||||
|
# corrects encoding for the python version used
|
||||||
|
if sys.version_info.major == 3:
|
||||||
|
return string
|
||||||
|
else:
|
||||||
|
return string.encode('utf-8')
|
||||||
|
|
||||||
|
|
||||||
|
def truncate(name, trunclen):
|
||||||
|
if len(name) > trunclen:
|
||||||
|
name = name[:trunclen]
|
||||||
|
name += '...'
|
||||||
|
if ('(' in name) and (')' not in name):
|
||||||
|
name += ')'
|
||||||
|
return name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Default parameters
|
||||||
|
output = fix_string(u'{artist} ~ {song}')
|
||||||
|
trunclen = 35
|
||||||
|
play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused
|
||||||
|
|
||||||
|
label_with_font = '%{{T{font}}}{label}%{{T-}}'
|
||||||
|
font = args.font
|
||||||
|
play_pause_font = args.play_pause_font
|
||||||
|
|
||||||
|
quiet = args.quiet
|
||||||
|
|
||||||
|
# parameters can be overwritten by args
|
||||||
|
if args.trunclen is not None:
|
||||||
|
trunclen = args.trunclen
|
||||||
|
if args.custom_format is not None:
|
||||||
|
output = args.custom_format
|
||||||
|
if args.play_pause is not None:
|
||||||
|
play_pause = args.play_pause
|
||||||
|
|
||||||
|
try:
|
||||||
|
session_bus = dbus.SessionBus()
|
||||||
|
spotify_bus = session_bus.get_object(
|
||||||
|
'org.mpris.MediaPlayer2.spotify',
|
||||||
|
'/org/mpris/MediaPlayer2'
|
||||||
|
)
|
||||||
|
|
||||||
|
spotify_properties = dbus.Interface(
|
||||||
|
spotify_bus,
|
||||||
|
'org.freedesktop.DBus.Properties'
|
||||||
|
)
|
||||||
|
|
||||||
|
metadata = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
|
||||||
|
status = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus')
|
||||||
|
|
||||||
|
# Handle play/pause label
|
||||||
|
|
||||||
|
play_pause = play_pause.split(',')
|
||||||
|
|
||||||
|
if status == 'Playing':
|
||||||
|
play_pause = play_pause[0]
|
||||||
|
elif status == 'Paused':
|
||||||
|
play_pause = play_pause[1]
|
||||||
|
else:
|
||||||
|
play_pause = str()
|
||||||
|
|
||||||
|
if play_pause_font:
|
||||||
|
play_pause = label_with_font.format(font=play_pause_font, label=play_pause)
|
||||||
|
|
||||||
|
# Handle main label
|
||||||
|
|
||||||
|
artist = fix_string(metadata['xesam:artist'][0]) if metadata['xesam:artist'] else ''
|
||||||
|
song = fix_string(metadata['xesam:title']) if metadata['xesam:title'] else ''
|
||||||
|
# song = metadata['xesam:title']
|
||||||
|
album = fix_string(metadata['xesam:album']) if metadata['xesam:album'] else ''
|
||||||
|
|
||||||
|
if (quiet and status == 'Paused') or (not artist and not song and not album):
|
||||||
|
print('')
|
||||||
|
elif (song == 'Spotify') or (song == 'Advertisement'):
|
||||||
|
print(truncate(output.format(artist="Spotify",
|
||||||
|
song="Advertisement",
|
||||||
|
play_pause=play_pause,
|
||||||
|
album=""), trunclen + 4))
|
||||||
|
else:
|
||||||
|
if font:
|
||||||
|
artist = label_with_font.format(font=font, label=artist)
|
||||||
|
song = label_with_font.format(font=font, label=song)
|
||||||
|
album = label_with_font.format(font=font, label=album)
|
||||||
|
|
||||||
|
# Add 4 to trunclen to account for status symbol, spaces, and other padding characters
|
||||||
|
print(truncate(output.format(artist=artist,
|
||||||
|
song=song,
|
||||||
|
play_pause=play_pause,
|
||||||
|
album=album), trunclen + 4))
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
if isinstance(e, dbus.exceptions.DBusException):
|
||||||
|
print('')
|
||||||
|
else:
|
||||||
|
print(e)
|
||||||
BIN
qtile/.config/qtile/__pycache__/config.cpython-310.pyc
Normal file
BIN
qtile/.config/qtile/__pycache__/config.cpython-310.pyc
Normal file
Binary file not shown.
BIN
qtile/.config/qtile/__pycache__/config.cpython-39.pyc
Normal file
BIN
qtile/.config/qtile/__pycache__/config.cpython-39.pyc
Normal file
Binary file not shown.
21
qtile/.config/qtile/autostart.sh
Executable file
21
qtile/.config/qtile/autostart.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#pipewire & /usr/bin/pipewire-pulse & /usr/bin/pipewire-media-session &
|
||||||
|
#xss-lock /home/$USER/.config/script/betterlockscreen.sh &
|
||||||
|
#fcitx -d &
|
||||||
|
#copyq --start-server &
|
||||||
|
#dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=qtile
|
||||||
|
#xset +fp /home/mrfluffy/.local/share/fonts
|
||||||
|
#xset fp rehash
|
||||||
|
#xsetroot -cursor_name left_ptr
|
||||||
|
#eval "$(gnome-keyring-daemon --start)"
|
||||||
|
#export SSH_AUTH_SOCK
|
||||||
|
#mkdir -p "$HOME"/.local/share/keyrings
|
||||||
|
#/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||||
|
#~/.azotebg
|
||||||
|
nitrogen --restore &
|
||||||
|
xss-lock -- /home/mrfluffy/.config/script/betterlockscreen.sh &
|
||||||
|
picom --backend glx &
|
||||||
|
sxhkd &
|
||||||
|
|
||||||
|
#/home/mrfluffy/.config/script/waylock.sh &
|
||||||
283
qtile/.config/qtile/config.py
Normal file
283
qtile/.config/qtile/config.py
Normal file
@@ -0,0 +1,283 @@
|
|||||||
|
# Copyright (c) 2010 Aldo Cortesi
|
||||||
|
# Copyright (c) 2010, 2014 dequis
|
||||||
|
# Copyright (c) 2012 Randall Ma
|
||||||
|
# Copyright (c) 2012-2014 Tycho Andersen
|
||||||
|
# Copyright (c) 2012 Craig Barnes
|
||||||
|
# Copyright (c) 2013 horsik
|
||||||
|
# Copyright (c) 2013 Tao Sauvage
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in
|
||||||
|
# all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
from libqtile import bar, layout, widget, hook
|
||||||
|
from libqtile.config import Click, Drag, Group, Key, Match, Screen, DropDown, ScratchPad
|
||||||
|
from libqtile.lazy import lazy
|
||||||
|
from libqtile.utils import guess_terminal
|
||||||
|
from libqtile.dgroups import simple_key_binder
|
||||||
|
import mouse as cursor
|
||||||
|
import psutil
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
mod = "mod1"
|
||||||
|
terminal = "alacritty"
|
||||||
|
|
||||||
|
keys = [
|
||||||
|
# A list of available commands that can be bound to keys can be found
|
||||||
|
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
|
||||||
|
# Switch between windows
|
||||||
|
Key([mod], "h", lazy.to_screen(1), desc="Move focus to left"),
|
||||||
|
Key([mod], "l", lazy.to_screen(0), desc="Move focus to right"),
|
||||||
|
Key([mod], "j", lazy.layout.next(), desc="Move focus down"),
|
||||||
|
Key([mod], "k", lazy.layout.previous(), desc="Move focus up"),
|
||||||
|
|
||||||
|
Key([mod], "backslash", lazy.group["SPD"].dropdown_toggle("term"), desc="Toggle terminal"),
|
||||||
|
# Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"),
|
||||||
|
# Move windows between left/right columns or move up/down in current stack.
|
||||||
|
# Moving out of range in Columns layout will create new column.
|
||||||
|
Key([mod, "shift"], "h", lazy.layout.shuffle_left(), desc="Move window to the left"),
|
||||||
|
Key([mod, "shift"], "l", lazy.layout.shuffle_right(), desc="Move window to the right"),
|
||||||
|
Key([mod, "shift"], "j", lazy.layout.shuffle_down(), desc="Move window down"),
|
||||||
|
Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Move window up"),
|
||||||
|
# Grow windows. If current window is on the edge of screen and direction
|
||||||
|
# will be to screen edge - window would shrink.
|
||||||
|
Key([mod, "control"], "h", lazy.layout.grow_left(), desc="Grow window to the left"),
|
||||||
|
Key([mod, "control"], "l", lazy.layout.grow_right(), desc="Grow window to the right"),
|
||||||
|
Key([mod, "control"], "j", lazy.layout.grow_down(), desc="Grow window down"),
|
||||||
|
Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"),
|
||||||
|
Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
|
||||||
|
# Toggle between split and unsplit sides of stack.
|
||||||
|
# Split = all windows displayed
|
||||||
|
# Unsplit = 1 window displayed, like Max layout, but still with
|
||||||
|
# multiple stack panes
|
||||||
|
Key([mod, "shift"], "t", lazy.window.toggle_floating()),
|
||||||
|
Key([mod], "t", lazy.window.toggle_fullscreen()),
|
||||||
|
Key(
|
||||||
|
[mod, "shift"],
|
||||||
|
"Return",
|
||||||
|
lazy.layout.toggle_split(),
|
||||||
|
desc="Toggle between split and unsplit sides of stack",
|
||||||
|
),
|
||||||
|
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
||||||
|
# Toggle between different layouts as defined below
|
||||||
|
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
|
||||||
|
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
|
||||||
|
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
|
||||||
|
Key([mod, "shift"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
||||||
|
Key([mod], "d", lazy.spawn("rofi -m -4 -no-lazy-greb -show drun -icon-theme 'Papirus' -show-icons"), desc="Spawn a command using a prompt widget"),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
#一二三四五六七八九
|
||||||
|
groups = [Group("1",label=("一")),
|
||||||
|
Group("2",label=("二")),
|
||||||
|
Group("3",label=("三")),
|
||||||
|
Group("4",label=("四")),
|
||||||
|
Group("5",label=("五")),
|
||||||
|
Group("6",label=("六")),
|
||||||
|
Group("7",label=("七")),
|
||||||
|
Group("8",label=("八")),
|
||||||
|
Group("9",label=("九")),]
|
||||||
|
for i in groups:
|
||||||
|
keys.extend(
|
||||||
|
[
|
||||||
|
# mod1 + letter of group = switch to group
|
||||||
|
Key(
|
||||||
|
[mod],
|
||||||
|
i.name,
|
||||||
|
lazy.group[i.name].toscreen(),
|
||||||
|
desc="Switch to group {}".format(i.name),
|
||||||
|
),
|
||||||
|
# mod1 + shift + letter of group = switch to & move focused window to group
|
||||||
|
Key(
|
||||||
|
[mod, "shift"],
|
||||||
|
i.name,
|
||||||
|
lazy.window.togroup(i.name, switch_group=True),
|
||||||
|
desc="Switch to & move focused window to group {}".format(i.name),
|
||||||
|
),
|
||||||
|
# Or, use below if you prefer not to switch to that group.
|
||||||
|
# # mod1 + shift + letter of group = move focused window to group
|
||||||
|
# Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
|
||||||
|
# desc="move focused window to group {}".format(i.name)),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
groups.append(ScratchPad('scratchpad', [
|
||||||
|
DropDown('term', terminal, width=0.8, height=0.8, x=0.1, y=0.1, opacity=1),
|
||||||
|
]))
|
||||||
|
|
||||||
|
keys.extend([
|
||||||
|
Key([mod], "backslash", lazy.group['scratchpad'].dropdown_toggle('term')),
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
layouts = [
|
||||||
|
# layout.Columns(border_focus_stack=["#bd93f9", "#bd69f9"],border_focus="#bd69f9", border_width=4,margin= 5),
|
||||||
|
# Try more layouts by unleashing below layouts.
|
||||||
|
# layout.Stack(num_stacks=2),
|
||||||
|
# layout.Bsp(),
|
||||||
|
# layout.Matrix(),
|
||||||
|
layout.MonadTall(border_focus='#bd93f9',margin=5,border_width=4),
|
||||||
|
# layout.MonadWide(),
|
||||||
|
# layout.RatioTile(),
|
||||||
|
# layout.Tile(),
|
||||||
|
# layout.TreeTab(),
|
||||||
|
# layout.VerticalTile(),
|
||||||
|
# layout.Zoomy(),
|
||||||
|
layout.Max(),
|
||||||
|
]
|
||||||
|
|
||||||
|
widget_defaults = dict(
|
||||||
|
font="sans",
|
||||||
|
fontsize=12,
|
||||||
|
padding=3,
|
||||||
|
)
|
||||||
|
extension_defaults = widget_defaults.copy()
|
||||||
|
|
||||||
|
screens = [
|
||||||
|
Screen(
|
||||||
|
top=bar.Bar(
|
||||||
|
[
|
||||||
|
widget.GroupBox(highlight_method='text',active='5c6b99',this_current_screen_border='bd93f9', background='282a36',inactive='ffffff'),
|
||||||
|
widget.Prompt(background='282a36'),
|
||||||
|
widget.Spacer(background='282a36'),
|
||||||
|
widget.Chord(background='282a36',
|
||||||
|
chords_colors={
|
||||||
|
"launch": ("#ff0000", "#ffffff"),
|
||||||
|
},
|
||||||
|
name_transform=lambda name: name.upper(),
|
||||||
|
),
|
||||||
|
widget.Clock(format="%Y-%m-%d %a %I:%M %p",background='282a36'),
|
||||||
|
widget.Spacer(background='282a36'),
|
||||||
|
#widget.Wlan(format='{essid} {percent:2.0%}',interface='wlp2s0',background='282a36'),
|
||||||
|
widget.Volume(fmt='VOL:{}',background='282a36'),
|
||||||
|
widget.CPU(format='CPU:{load_percent}%',background='282a36'),
|
||||||
|
widget.Memory(background='282a36',format='RAM:{MemUsed: .0f}{mm}'),
|
||||||
|
widget.Systray(background='282a36'),
|
||||||
|
],
|
||||||
|
24,
|
||||||
|
# border_width=[2, 0, 2, 0], # Draw top and bottom borders
|
||||||
|
# border_color=["ff00ff", "000000", "ff00ff", "000000"] # Borders are magenta
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Screen(
|
||||||
|
top=bar.Bar(
|
||||||
|
[
|
||||||
|
widget.GroupBox(highlight_method='text',active='5c6b99',this_current_screen_border='bd93f9', background='282a36',inactive='ffffff'),
|
||||||
|
widget.Prompt(background='282a36'),
|
||||||
|
widget.Spacer(background='282a36'),
|
||||||
|
widget.Chord(background='282a36',
|
||||||
|
chords_colors={
|
||||||
|
"launch": ("#ff0000", "#ffffff"),
|
||||||
|
},
|
||||||
|
name_transform=lambda name: name.upper(),
|
||||||
|
),
|
||||||
|
widget.Clock(format="%Y-%m-%d %a %I:%M %p",background='282a36'),
|
||||||
|
widget.Spacer(background='282a36'),
|
||||||
|
#widget.Wlan(format='{essid} {percent:2.0%}',interface='wlp2s0',background='282a36'),
|
||||||
|
widget.Volume(fmt='VOL:{}',background='282a36'),
|
||||||
|
widget.CPU(format='CPU:{load_percent}%',background='282a36'),
|
||||||
|
widget.Memory(background='282a36',format='RAM:{MemUsed: .0f}{mm}'),
|
||||||
|
],
|
||||||
|
24,
|
||||||
|
# border_width=[2, 0, 2, 0], # Draw top and bottom borders
|
||||||
|
# border_color=["ff00ff", "000000", "ff00ff", "000000"] # Borders are magenta
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
## Startup applications
|
||||||
|
@hook.subscribe.startup_once
|
||||||
|
def autostart():
|
||||||
|
home = os.path.expanduser('~')
|
||||||
|
subprocess.Popen([home + '/.config/qtile/autostart.sh'])
|
||||||
|
|
||||||
|
## Window swalloing
|
||||||
|
@hook.subscribe.client_new
|
||||||
|
def _swallow(window):
|
||||||
|
pid = window.window.get_net_wm_pid()
|
||||||
|
ppid = psutil.Process(pid).ppid()
|
||||||
|
cpids = {c.window.get_net_wm_pid(): wid for wid, c in window.qtile.windows_map.items()}
|
||||||
|
for i in range(5):
|
||||||
|
if not ppid:
|
||||||
|
return
|
||||||
|
if ppid in cpids:
|
||||||
|
parent = window.qtile.windows_map.get(cpids[ppid])
|
||||||
|
parent.minimized = True
|
||||||
|
window.parent = parent
|
||||||
|
return
|
||||||
|
ppid = psutil.Process(ppid).ppid()
|
||||||
|
|
||||||
|
@hook.subscribe.client_killed
|
||||||
|
def _unswallow(window):
|
||||||
|
if hasattr(window, 'parent'):
|
||||||
|
window.parent.minimized = False
|
||||||
|
|
||||||
|
@hook.subscribe.client_focus
|
||||||
|
def _focus(window):
|
||||||
|
#move mouse to center of window
|
||||||
|
position = window.cmd_get_position()
|
||||||
|
x = position[0] + (window.cmd_get_size()[0] / 2)
|
||||||
|
y = position[1] + (window.cmd_get_size()[1] / 2)
|
||||||
|
cursor.move(x, y)
|
||||||
|
|
||||||
|
# Drag floating layouts.
|
||||||
|
mouse = [
|
||||||
|
Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
|
||||||
|
Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
|
||||||
|
Click([mod], "Button2", lazy.window.bring_to_front()),
|
||||||
|
]
|
||||||
|
|
||||||
|
dgroups_key_binder = None
|
||||||
|
dgroups_app_rules = [] # type: list
|
||||||
|
follow_mouse_focus = True
|
||||||
|
bring_front_click = False
|
||||||
|
cursor_warp = False
|
||||||
|
floating_layout = layout.Floating(
|
||||||
|
float_rules=[
|
||||||
|
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||||
|
*layout.Floating.default_float_rules,
|
||||||
|
Match(wm_class="confirmreset"), # gitk
|
||||||
|
Match(wm_class="makebranch"), # gitk
|
||||||
|
Match(wm_class="maketag"), # gitk
|
||||||
|
Match(wm_class="ssh-askpass"), # ssh-askpass
|
||||||
|
Match(title="branchdialog"), # gitk
|
||||||
|
Match(title="pinentry"), # GPG key password entry
|
||||||
|
]
|
||||||
|
)
|
||||||
|
auto_fullscreen = True
|
||||||
|
focus_on_window_activation = "smart"
|
||||||
|
reconfigure_screens = True
|
||||||
|
|
||||||
|
# If things like steam games want to auto-minimize themselves when losing
|
||||||
|
# focus, should we respect this or not?
|
||||||
|
auto_minimize = True
|
||||||
|
|
||||||
|
# When using the Wayland backend, this can be used to configure input devices.
|
||||||
|
wl_input_rules = None
|
||||||
|
|
||||||
|
# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
|
||||||
|
# string besides java UI toolkits; you can see several discussions on the
|
||||||
|
# mailing lists, GitHub issues, and other WM documentation that suggest setting
|
||||||
|
# this string if your java app doesn't work correctly. We may as well just lie
|
||||||
|
# and say that we're a working one by default.
|
||||||
|
#
|
||||||
|
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
|
||||||
|
# java that happens to be on java's whitelist.
|
||||||
|
wmname = "Qtile"
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#chack to see if trackma is running
|
chack to see if trackma is running
|
||||||
if pgrep -x "trackma" > /dev/null
|
if pgrep -x "trackma" > /dev/null
|
||||||
then
|
then
|
||||||
alacritty -e "$HOME"/Documents/Rust/kami/target/release/kami -a
|
alacritty -e "$HOME"/Documents/Rust/kami/target/release/kami -a
|
||||||
else
|
else
|
||||||
|
|
||||||
trackma
|
trackma
|
||||||
alacritty -e "$HOME"/Documents/Rust/kami/target/release/kami -a
|
alacritty -e "$HOME"/Documents/Rust/kami/target/release/kami -a
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
swaylock -i Pictures/Wallpapers/15.jpg --ring-color 8218c4 --key-hl-color 3e0c60
|
swaylock -i "$HOME"/Pictures/Wallpapers/15.jpg --ring-color 8218c4 --key-hl-color 3e0c60
|
||||||
|
|||||||
3
script/.config/script/trackma.sh
Executable file
3
script/.config/script/trackma.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
trackma
|
||||||
@@ -5,7 +5,7 @@ alt + d
|
|||||||
rofi -no-lazy-greb -show drun -icon-theme 'Papirus' -show-icons
|
rofi -no-lazy-greb -show drun -icon-theme 'Papirus' -show-icons
|
||||||
|
|
||||||
alt + Return
|
alt + Return
|
||||||
alacritty
|
kitty
|
||||||
|
|
||||||
alt + b
|
alt + b
|
||||||
qutebrowser
|
qutebrowser
|
||||||
@@ -41,4 +41,4 @@ alt + o
|
|||||||
rofimoji
|
rofimoji
|
||||||
|
|
||||||
alt + a
|
alt + a
|
||||||
$HOME/.config/script/animemode.sh
|
kitty -e $HOME/Documents/Rust/kami/target/release/kami -a
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ xrandr --output eDP --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0
|
|||||||
xrandr --output HDMI-A-0 --set TearFree on &
|
xrandr --output HDMI-A-0 --set TearFree on &
|
||||||
xrandr --output eDP --set TearFree on &
|
xrandr --output eDP --set TearFree on &
|
||||||
#exec /home/mrfluffy/.local/bin/xmonad
|
#exec /home/mrfluffy/.local/bin/xmonad
|
||||||
#exec qtile start
|
|
||||||
source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
|
source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
|
||||||
eval "$(gnome-keyring-daemon --start)"
|
eval "$(gnome-keyring-daemon --start)"
|
||||||
export SSH_AUTH_SOCK
|
export SSH_AUTH_SOCK
|
||||||
@@ -17,6 +16,8 @@ mkdir -p "$HOME"/.local/share/keyrings
|
|||||||
|
|
||||||
#exec dbus-launch leftwm
|
#exec dbus-launch leftwm
|
||||||
#polybar barbase &
|
#polybar barbase &
|
||||||
|
|
||||||
|
#exec qtile start
|
||||||
/home/mrfluffy/.config/hentaiwm/target/release/hentaiwm &> ~/.penrose.log
|
/home/mrfluffy/.config/hentaiwm/target/release/hentaiwm &> ~/.penrose.log
|
||||||
#-----------------------------------------------------
|
#-----------------------------------------------------
|
||||||
#gome session
|
#gome session
|
||||||
|
|||||||
1808
zsh/.config/zsh/.zcompdump
Normal file
1808
zsh/.config/zsh/.zcompdump
Normal file
File diff suppressed because it is too large
Load Diff
@@ -20,6 +20,7 @@ export NIX_PATH="$HOME/.nix-defexpr/"
|
|||||||
export TERMINAL="alacritty"
|
export TERMINAL="alacritty"
|
||||||
autoload -U up-line-or-beginning-search
|
autoload -U up-line-or-beginning-search
|
||||||
autoload -U down-line-or-beginning-search
|
autoload -U down-line-or-beginning-search
|
||||||
|
autoload -U compinit && compinit -u
|
||||||
zle -N up-line-or-beginning-search
|
zle -N up-line-or-beginning-search
|
||||||
zle -N down-line-or-beginning-search
|
zle -N down-line-or-beginning-search
|
||||||
bindkey "^[[A" up-line-or-beginning-search
|
bindkey "^[[A" up-line-or-beginning-search
|
||||||
@@ -39,6 +40,7 @@ alias rm="rip"
|
|||||||
alias time="hyperfine"
|
alias time="hyperfine"
|
||||||
alias kami="~/Documents/Rust/kami/target/release/kami"
|
alias kami="~/Documents/Rust/kami/target/release/kami"
|
||||||
alias calc="cpc"
|
alias calc="cpc"
|
||||||
|
alias pdf="mupdf"
|
||||||
#home clean up
|
#home clean up
|
||||||
export EDITOR="lvim"
|
export EDITOR="lvim"
|
||||||
export ANDROID_HOME="$XDG_DATA_HOME"/android
|
export ANDROID_HOME="$XDG_DATA_HOME"/android
|
||||||
|
|||||||
Reference in New Issue
Block a user