Hyprland
This commit is contained in:
parent
b4568f91c3
commit
98e55eb2a2
28 changed files with 1526 additions and 305 deletions
|
@ -5,7 +5,7 @@
|
|||
##################################################
|
||||
|
||||
export STARDICT_DATA_DIR=$XDG_DATA_HOME/stardict
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
# export QT_QPA_PLATFORMTHEME="qt6ct"
|
||||
export QT_PLATFORM_PLUGIN="kde"
|
||||
export XDG_CURRENT_DESKTOP="KDE"
|
||||
export DESKTOP_SESSION="plasma"
|
||||
|
@ -40,6 +40,7 @@ xrdb -merge -q "${HOME}/.Xresources" && "${HOME}/.fehbg" && wal -Rnq
|
|||
xset s off
|
||||
xset -dpms
|
||||
xset r off
|
||||
otd-daemon &
|
||||
|
||||
##################################################
|
||||
# BSPWM #
|
||||
|
@ -79,8 +80,8 @@ redshift -l 44.481:0.3545 &
|
|||
##################################################
|
||||
|
||||
# Appmenu
|
||||
kded5 &
|
||||
qdbus org.kde.kded5 /kded org.kde.kded5.loadModule appmenu
|
||||
kded6 &
|
||||
qdbus6 org.kde.kded6 /kded org.kde.kded6.loadModule appmenu
|
||||
"${HOME}/bin/qmenu_registrar" &
|
||||
# Notifications
|
||||
dunst &
|
||||
|
|
|
@ -72,6 +72,7 @@ rounded-corners-exclude = [
|
|||
"name = 'Latte Shell — Latte Dock'",
|
||||
"class_g = 'awesome'",
|
||||
"class_g = 'latte-dock'",
|
||||
"class_g ?= 'rofi'",
|
||||
# "window_type = 'dock'",
|
||||
# "class_g = 'bar'"
|
||||
];
|
||||
|
@ -88,25 +89,25 @@ rounded-corners-exclude = [
|
|||
shadow = true;
|
||||
|
||||
# The blur radius for shadows, in pixels. (defaults to 16)
|
||||
shadow-radius = 16;
|
||||
shadow-radius = 7;
|
||||
|
||||
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
||||
# shadow-opacity = 0.75;
|
||||
shadow-opacity = 0.75;
|
||||
|
||||
# The left offset for shadows, in pixels. (defaults to -15)
|
||||
shadow-offset-x = -15;
|
||||
shadow-offset-x = -7;
|
||||
|
||||
# The top offset for shadows, in pixels. (defaults to -15)
|
||||
shadow-offset-y = -15;
|
||||
shadow-offset-y = -7;
|
||||
|
||||
# Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-red = 0;
|
||||
shadow-red = 0;
|
||||
|
||||
# Green color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-green = 0;
|
||||
shadow-green = 0;
|
||||
|
||||
# Blue color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-blue = 0;
|
||||
shadow-blue = 0;
|
||||
|
||||
# Hex string color value of shadow (#000000 - #FFFFFF, defaults to #000000). This option will override options set shadow-(red/green/blue)
|
||||
# shadow-color = "#000000";
|
||||
|
@ -123,6 +124,7 @@ shadow-exclude = [
|
|||
"class_g = 'slop'",
|
||||
"class_g = 'Polybar'",
|
||||
"class_g = 'latte-dock'",
|
||||
"class_g ?= 'rofi'",
|
||||
"window_type = 'popup_menu'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
@ -192,9 +194,15 @@ active-opacity = 1.0;
|
|||
# it will use the opacity set there as the inactive-opacity
|
||||
# Also excludes effects caused by inactive-dim
|
||||
#
|
||||
# inactive-exclude = [
|
||||
# "class_g = 'dwm'"
|
||||
# ];
|
||||
inactive-exclude = [
|
||||
"class_g = 'Cairo-clock'",
|
||||
"class_g = 'latte-dock'",
|
||||
"class_g = 'Bar'", # lemonbar
|
||||
"class_g = 'slop'", # maim
|
||||
"class_g ?= 'Steam'",
|
||||
"class_g ?= 'rofi'",
|
||||
"class_g = 'eww-bar'"
|
||||
];
|
||||
|
||||
|
||||
# A list of windows that should never have their opacity changed by active-opacity when focused.
|
||||
|
@ -256,7 +264,6 @@ blur-exclude = [
|
|||
"class_g = 'slop'",
|
||||
"class_g = 'Firefox' && argb",
|
||||
"class_g = 'Xfce4-panel'",
|
||||
"name = 'rofi - Search'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
* {
|
||||
all: unset;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
window {
|
||||
|
@ -50,7 +51,7 @@ window {
|
|||
.full-music-bar trough highlight {
|
||||
all: unset;
|
||||
background-color: $color5;
|
||||
border-radius: 0px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.full-music-bar trough {
|
||||
all: unset;
|
||||
|
@ -60,6 +61,7 @@ window {
|
|||
}
|
||||
.full-music-bar {
|
||||
border-radius: 0px;
|
||||
padding: 0 1px;
|
||||
}
|
||||
.prefix {
|
||||
color: $color5;
|
||||
|
@ -245,6 +247,7 @@ calendar {
|
|||
color: #dfdfdf;
|
||||
}
|
||||
|
||||
.workspace-active,
|
||||
.focused {
|
||||
color: $background;
|
||||
background-color: rgba($color5,70%);
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
(defvar time_rev false)
|
||||
(defvar eww "/usr/bin/eww")
|
||||
|
||||
(deflisten window-title :initial "..." "sh ~/.config/eww/scripts/get-window-title")
|
||||
|
||||
(deflisten workspaces-hypr
|
||||
`hyprland-workspaces ALL`)
|
||||
|
||||
(deflisten workspaces
|
||||
`workspaces`)
|
||||
|
||||
|
@ -35,6 +40,21 @@
|
|||
(defpoll date :interval "30m"
|
||||
`date +'{"year":"%Y","month":"%m","day":"%d"}'`)
|
||||
|
||||
(defwidget workspaces-hypr []
|
||||
(eventbox :onscroll "hyprctl dispatch workspace `echo {} | sed 's/up/+/\' | sed 's/down/-/'`1"
|
||||
(box :space-evenly true :spacing 0 :halign "start" :valign "center" :vexpend true :hexpend true :class "workspaces"
|
||||
(for i in workspaces-hypr
|
||||
(button
|
||||
:onclick "hyprctl dispatch workspace ${i.id}"
|
||||
:class "${i.class}"
|
||||
"${i.name}")))))
|
||||
|
||||
(defwidget window-title []
|
||||
(box :orientation "h" :class "inline inline-xtitle" :space-evenly "false" :spacing 10 :halign "end" :visible {window-title != ""}
|
||||
(label :class "" :text {window-title} :wrap "false" :limit-width 60)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget clock []
|
||||
(box :orientation "h" :class "clock" :space-evenly "false" :spacing 0
|
||||
(image :path {mascot} :image-width 90 :image-height 225)
|
||||
|
@ -124,6 +144,20 @@
|
|||
)
|
||||
)
|
||||
|
||||
(defwidget bar-hypr []
|
||||
(box :class "bar" :orientation "v" :space-evenly "false" :spacing 0
|
||||
(progress-bar)
|
||||
(centerbox :class "bar" :orientation "h"
|
||||
(workspaces-hypr)
|
||||
(window-title)
|
||||
(box :orientation "h" :space-evenly "false" :spacing 10 :halign "end"
|
||||
(inline-music)
|
||||
(inline-clock)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwindow calendar
|
||||
:monitor 0
|
||||
:stacking "bg"
|
||||
|
@ -140,8 +174,8 @@
|
|||
:stacking "bg"
|
||||
:windowtype "desktop"
|
||||
:geometry (geometry
|
||||
:x "-7px"
|
||||
:y "-7px"
|
||||
:x "7px"
|
||||
:y "7px"
|
||||
:width "100px"
|
||||
:height "100px"
|
||||
:anchor "bottom right")
|
||||
|
@ -186,3 +220,16 @@
|
|||
:anchor "top left")
|
||||
(bar)
|
||||
)
|
||||
|
||||
(defwindow bar-hypr
|
||||
:monitor 0
|
||||
:exclusive true
|
||||
:stacking "bg"
|
||||
:geometry (geometry
|
||||
:x "7px"
|
||||
:y "3px"
|
||||
:height "28px"
|
||||
:width "1904px"
|
||||
:anchor "top center")
|
||||
(bar-hypr)
|
||||
)
|
||||
|
|
3
bspwm/.config/eww/scripts/get-window-title
Executable file
3
bspwm/.config/eww/scripts/get-window-title
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
hyprctl activewindow -j | jq --raw-output .title
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}'
|
6
hyprland/.config/hypr/hyprland.conf
Normal file
6
hyprland/.config/hypr/hyprland.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Source a file (multi-file configs)
|
||||
source = ~/.config/hypr/hyprland/general.conf
|
||||
source = ~/.config/hypr/hyprland/env.conf
|
||||
source = ~/.config/hypr/hyprland/execs.conf
|
||||
source = ~/.config/hypr/hyprland/rules.conf
|
||||
source = ~/.config/hypr/hyprland/keybinds.conf
|
30
hyprland/.config/hypr/hyprland/env.conf
Normal file
30
hyprland/.config/hypr/hyprland/env.conf
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
#env = QT_QPA_PLATFORM,wayland;xcb
|
||||
#env = QT_QPA_PLATFORMTHEME,qt5ct
|
||||
env = QT_PLATFORM_PLUGIN,kde
|
||||
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
#env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
env = KRITA_NO_STYLE_OVERRIDE,1
|
||||
|
||||
env = GDK_BACKEND,wayland,x11
|
||||
#env = QT_QPA_PLATFORM,xcb
|
||||
env = QT_QPA_PLATFORM,xcb
|
||||
# env = QT_QPA_PLATFORMTHEME,qt6ct #env = QT_STYLE_OVERRIDE,kvantum
|
||||
env = QT_QPA_PLATFORMTHEME,KDE
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
env = _JAVA_AWT_WM_NONREPARENTING,1
|
||||
env = WLR_NO_HARDWARE_CURSORS,1
|
||||
|
||||
env = MOZ_DISABLE_RDD_SANDBOX,1
|
||||
env = MOZ_ENABLE_WAYLAND,1
|
||||
env = GO111MODULE,on
|
||||
|
||||
env = OZONE_PLATFORM,wayland
|
23
hyprland/.config/hypr/hyprland/execs.conf
Normal file
23
hyprland/.config/hypr/hyprland/execs.conf
Normal file
|
@ -0,0 +1,23 @@
|
|||
exec-once = hyprpm reload -n
|
||||
exec-once = swaybg -m fill -i ~/.config/feh/wallpaper.png &
|
||||
exec-once = kded6 &
|
||||
exec-once = otd-daemon &
|
||||
exec-once = wal -Rnq &
|
||||
exec-once = qdbus6 org.kde.kded6 /kded org.kde.kded6.loadModule appmenu &
|
||||
exec-once = ~/bin/qmenu_registrar &
|
||||
exec-once = dunst &
|
||||
exec-once = pipewire-autostart.sh &
|
||||
exec-once = hyprland-autoname-workspaces &
|
||||
exec-once = eww daemon &
|
||||
exec-once = eww open bar-hypr &
|
||||
exec-once = eww open clock &
|
||||
exec-once = mpd &
|
||||
exec-once = playerctld daemon &
|
||||
exec-once = mpDris2 &
|
||||
exec-once = transmission-daemon &
|
||||
exec-once = ~/bin/transmission-rss
|
||||
|
||||
exec-once = wl-paste --type text --watch cliphist store
|
||||
exec-once = wl-paste --type image --watch cliphist store
|
||||
exec-once = hyprctl setcursor Bibata-Original-Classic 24
|
||||
# exec-once = waybar -c ~/.config/waybar/config-hypr &
|
142
hyprland/.config/hypr/hyprland/general.conf
Normal file
142
hyprland/.config/hypr/hyprland/general.conf
Normal file
|
@ -0,0 +1,142 @@
|
|||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=DP-2,1920x1080@144,0x0,1,vrr,1
|
||||
|
||||
misc {
|
||||
disable_hyprland_logo = true
|
||||
disable_splash_rendering = true
|
||||
always_follow_on_dnd = true
|
||||
mouse_move_enables_dpms = true
|
||||
focus_on_activate = true
|
||||
vfr = true
|
||||
vrr = 1
|
||||
animate_manual_resizes = true
|
||||
mouse_move_focuses_monitor = true
|
||||
enable_swallow = true
|
||||
swallow_regex = ^(kitty)$
|
||||
}
|
||||
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant = dvorak
|
||||
kb_model =
|
||||
kb_options = caps:escape,lv3:ralt_switch,compose:sclk
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 2
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
gaps_in = 6
|
||||
gaps_out = 6
|
||||
border_size = 1
|
||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||
col.inactive_border = rgba(595959aa)
|
||||
|
||||
layout = dwindle
|
||||
resize_on_border = false
|
||||
}
|
||||
|
||||
plugin {
|
||||
hy3 {
|
||||
tabs {
|
||||
height = 2
|
||||
padding = 6
|
||||
render_text = false
|
||||
}
|
||||
|
||||
autotile {
|
||||
enable = true
|
||||
trigger_width = 800
|
||||
trigger_height = 500
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
decoration {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
rounding = 10
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
xray = false
|
||||
size = 5
|
||||
passes = 3
|
||||
new_optimizations = true
|
||||
special = true
|
||||
popups = true
|
||||
ignore_opacity = true
|
||||
}
|
||||
|
||||
dim_inactive = true
|
||||
dim_strength = 0.2
|
||||
drop_shadow = no
|
||||
shadow_range = 4
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true
|
||||
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
# bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
bezier = overshot, 0.13, 0.99, 0.29, 1.1
|
||||
animation = windows, 1, 4, overshot, slide
|
||||
animation = windowsOut, 1, 5, default, popin 80%
|
||||
animation = border, 1, 5, default
|
||||
animation = fade, 1, 8, default
|
||||
animation = workspaces, 1, 6, overshot, slide
|
||||
|
||||
# animation = windows, 1, 7, myBezier
|
||||
# animation = windowsOut, 1, 7, default, popin 80%
|
||||
# animation = border, 1, 10, default
|
||||
# animation = borderangle, 1, 8, default
|
||||
# animation = fade, 1, 7, default
|
||||
# animation = workspaces, 1, 6, default
|
||||
}
|
||||
|
||||
dwindle {
|
||||
no_gaps_when_only = false
|
||||
special_scale_factor = 0.8
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # you probably want this
|
||||
}
|
||||
|
||||
binds {
|
||||
workspace_back_and_forth = true
|
||||
}
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
new_is_master = true
|
||||
}
|
||||
|
||||
gestures {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = true
|
||||
workspace_swipe_fingers = 4
|
||||
workspace_swipe_distance = 250
|
||||
workspace_swipe_invert = true
|
||||
workspace_swipe_min_speed_to_force = 15
|
||||
workspace_swipe_cancel_ratio = 0.5
|
||||
workspace_swipe_create_new = false
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||
#device:wacom-intuos-bt-m-pen {
|
||||
# output=DP-2
|
||||
# relative_input=false
|
||||
#}
|
75
hyprland/.config/hypr/hyprland/keybinds.conf
Normal file
75
hyprland/.config/hypr/hyprland/keybinds.conf
Normal file
|
@ -0,0 +1,75 @@
|
|||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
# example binds
|
||||
bind=$mainMod,RETURN, exec, kitty
|
||||
bind=$mainMod,Z,killactive,
|
||||
bind=$mainMod + Alt, ESCAPE ,exit,
|
||||
bind=$mainMod,V,togglefloating,
|
||||
bind=$mainMod,F,fullscreen,
|
||||
bind=$mainMod,SPACE, exec, rofi -show drun -fullscreen -monitor -4 --terminal kitty -theme app -drun-categories System,Utility,Network,Office,Settings,Game,Qt,Development,Graphics,GTK,AudioVideo,Audio,Video,Viewer,WebBrowser
|
||||
bind=$mainMod + SHIFT, SPACE , exec, rofi -show drun -fullscreen -monitor -4 --terminal kitty -theme manga -drun-categories Manga
|
||||
bind=$mainMod + SHIFT, A , exec, ~/bin/qmenu_hud
|
||||
|
||||
bind=$mainMod,P,pseudo,
|
||||
|
||||
bind=$mainMod,h,movefocus,l
|
||||
bind=$mainMod,l,movefocus,r
|
||||
bind=$mainMod,k,movefocus,u
|
||||
bind=$mainMod,j,movefocus,d
|
||||
|
||||
bind=$mainMod + SHIFT, h, movewindow, l
|
||||
bind=$mainMod + SHIFT, l, movewindow, r
|
||||
bind=$mainMod + SHIFT, k, movewindow, u
|
||||
bind=$mainMod + SHIFT, j, movewindow, d
|
||||
|
||||
bind=$mainMod, RIGHT, workspace, +1
|
||||
bind=$mainMod, LEFT, workspace, -1
|
||||
|
||||
bind=$mainMod + SHIFT, RIGHT, movetoworkspace, +1
|
||||
bind=$mainMod + SHIFT, LEFT, movetoworkspace, -1
|
||||
|
||||
bind=$mainMod,1,workspace,1
|
||||
bind=$mainMod,2,workspace,2
|
||||
bind=$mainMod,3,workspace,3
|
||||
bind=$mainMod,4,workspace,4
|
||||
bind=$mainMod,5,workspace,5
|
||||
bind=$mainMod,6,workspace,6
|
||||
bind=$mainMod,7,workspace,7
|
||||
bind=$mainMod,8,workspace,8
|
||||
bind=$mainMod,9,workspace,9
|
||||
bind=$mainMod,0,workspace,10
|
||||
|
||||
bind=ALT,1,movetoworkspace,1
|
||||
bind=ALT,2,movetoworkspace,2
|
||||
bind=ALT,3,movetoworkspace,3
|
||||
bind=ALT,4,movetoworkspace,4
|
||||
bind=ALT,5,movetoworkspace,5
|
||||
bind=ALT,6,movetoworkspace,6
|
||||
bind=ALT,7,movetoworkspace,7
|
||||
bind=ALT,8,movetoworkspace,8
|
||||
bind=ALT,9,movetoworkspace,9
|
||||
bind=ALT,0,movetoworkspace,10
|
||||
|
||||
bind=$mainMod,R,exec,wofi --show drun -o DP-3
|
||||
bind=CTRL,SPACE,exec,dunstctl close
|
||||
bind=CTRL+SHIFT,SPACE,exec,dunstctl close-all
|
||||
bind=CTRL,grave,exec,dunstctl hystory-pop
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
|
||||
bindel=, XF86AudioRaiseVolume, exec, mixer update 2+
|
||||
bindel=, XF86AudioLowerVolume, exec, mixer update 2%-
|
||||
bindl=, Pause, exec, mixer switch
|
||||
bindl=, XF86AudioMute, exec, amixer -q set Master toggle
|
||||
bindl=, XF86AudioNext, exec, mixer next
|
||||
bindl=, XF86AudioPrev, exec, mixer prev
|
||||
bindl=, XF86AudioPlay, exec, mixer toggle
|
||||
bindl=, XF86AudioStop, exec, mixer stop
|
8
hyprland/.config/hypr/hyprland/rules.conf
Normal file
8
hyprland/.config/hypr/hyprland/rules.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
layerrule = ignorezero, gtk-layer-shell
|
||||
layerrule = blur, gtk-layer-shell
|
||||
layerrule = blur, eww
|
||||
layerrule = blur, laucher
|
||||
layerrule = blur, notifications
|
||||
|
||||
windowrule = rounding 0, Rofi
|
||||
windowrule = rounding 30, gtk-layer-shell
|
175
hyprland/.config/hyprland-autoname-workspaces/config.toml
Normal file
175
hyprland/.config/hyprland-autoname-workspaces/config.toml
Normal file
|
@ -0,0 +1,175 @@
|
|||
version = "1.1.13"
|
||||
|
||||
[format]
|
||||
# Deduplicate icons if enable.
|
||||
# A superscripted counter will be added.
|
||||
dedup = false
|
||||
dedup_inactive_fullscreen = false # dedup more
|
||||
# window delimiter
|
||||
delim = " "
|
||||
# max_clients = 30 # you should not need this
|
||||
|
||||
# available formatter:
|
||||
# {counter_sup} - superscripted count of clients on the workspace, and simple {counter}, {delim}
|
||||
# {icon}, {client}
|
||||
# workspace formatter
|
||||
workspace = "{clients}" # {id}, {delim} and {clients} are supported
|
||||
workspace_empty = " " # {id}, {delim} and {clients} are supported
|
||||
# client formatter
|
||||
client = "{icon}"
|
||||
client_active = "{icon}"
|
||||
|
||||
# deduplicate client formatter
|
||||
client_fullscreen = "[{icon}]"
|
||||
client_dup = "{icon}{counter_sup}"
|
||||
client_dup_fullscreen = "[{icon}]{delim}{icon}{counter_unfocused}"
|
||||
client_dup_active = "[{icon}{counter_sup}]"
|
||||
|
||||
[class_active]
|
||||
DEFAULT = "{icon}"
|
||||
#"(?i)ExampleOneTerm" = "<span foreground='red'>{icon}</span>"
|
||||
|
||||
[initial_class]
|
||||
"DEFAULT" = " {class}: {title}"
|
||||
# "(?i)Kitty" = "term"
|
||||
|
||||
# [initial_class_active]
|
||||
# "(?i)Kitty" = "*TERM*"
|
||||
|
||||
#[title_in_class."(?i)kitty"]
|
||||
#"(?i)neomutt" = "neomutt"
|
||||
# regex captures support is supported
|
||||
# "emerge: (.+?/.+?)-.*" = "{match1}"
|
||||
|
||||
#[title_in_class_active."(?i)firefox"]
|
||||
#"(?i)twitch" = "<span color='purple'>{icon}</span>"
|
||||
|
||||
# [title_in_initial_class."(?i)kitty"]
|
||||
# "(?i)neomutt" = "neomutt"
|
||||
|
||||
# [initial_title_in_class."(?i)kitty"]
|
||||
# "(?i)neomutt" = "neomutt"
|
||||
|
||||
# [initial_title_in_initial_class."(?i)kitty"]
|
||||
# "(?i)neomutt" = "neomutt"
|
||||
|
||||
# [initial_title."(?i)kitty"]
|
||||
# "zsh" = "Zsh"
|
||||
|
||||
# [initial_title_active."(?i)kitty"]
|
||||
# "zsh" = "*Zsh*"
|
||||
|
||||
# Add your applications that need to be exclude
|
||||
# The key is the class, the value is the title.
|
||||
# You can put an empty title to exclude based on
|
||||
# class name only, "" make the job.
|
||||
[exclude]
|
||||
"" = "^$" # prevent displaying clients with empty class
|
||||
#"(?i)fcitx" = ".*" # will match all title for fcitx
|
||||
#"(?i)TestApp" = "" # will match all title for TestApp
|
||||
#aProgram = "^$" # will match null title for aProgram
|
||||
#"[Ss]team" = "^(Friends List.*)?$" # will match Steam friends list plus all popups (empty titles)
|
||||
|
||||
[class]
|
||||
# Add your icons mapping
|
||||
# use double quote the key and the value
|
||||
# take class name from 'hyprctl clients'
|
||||
#"" = " "
|
||||
DEFAULT = ""
|
||||
"monero-core" = " "
|
||||
"electrum" = " "
|
||||
"Chromium" = " "
|
||||
"Tor Browser" = "﨩"
|
||||
"Firefox" = " "
|
||||
"qutebrowser" = " "
|
||||
"konqueror" = " "
|
||||
"Vivaldi-stable" = " "
|
||||
"Steam" = " "
|
||||
"steam" = " "
|
||||
"steamwebhelper" = " "
|
||||
"keepassxc" = " "
|
||||
"KeePassXC" = " "
|
||||
"krita" = " "
|
||||
"Cemu.exe" = " "
|
||||
"antimicro" = " "
|
||||
"Wine" = " "
|
||||
"Lutris" = " "
|
||||
"Com.github.tkashkin.gamehub" = " "
|
||||
"Chad-launcher" = " "
|
||||
"heroic" = " "
|
||||
"TelegramDesktop" = " "
|
||||
"Spectral" = " "
|
||||
"nheko" = " "
|
||||
"konversation" = " "
|
||||
"nvim" = " "
|
||||
"Termite" = " "
|
||||
"Alacritty" = " "
|
||||
"konsole" = " "
|
||||
"terminator" = " "
|
||||
"URxvt" = " "
|
||||
"xst-256color" = " "
|
||||
"st-256color" = " "
|
||||
"kitty" = " "
|
||||
"calibre" = " "
|
||||
"dolphin" = " "
|
||||
"pcmanfm-qt" = " "
|
||||
"okular" = " "
|
||||
"llpp" = " "
|
||||
"Zathura" = " "
|
||||
"mupdf" = " "
|
||||
"Evince" = " "
|
||||
"MuPDF" = " "
|
||||
"cantata" = " "
|
||||
"elisa" = " "
|
||||
"mpv" = " "
|
||||
"transmission" = " "
|
||||
"ktorrent" = " "
|
||||
"spectacle" = " "
|
||||
"gwenview"= " "
|
||||
"feh" = " "
|
||||
"imv" = " "
|
||||
"sxiv" = " "
|
||||
"Bitwig Studio" = " "
|
||||
"qpwgraph" = " "
|
||||
"Audacity" = " "
|
||||
"Sneedacity" = " "
|
||||
"kcharselect" = " "
|
||||
"scrcpy" = " "
|
||||
"p3x-onenote" = " "
|
||||
"lxqt-config-appearance" = " "
|
||||
"Kvantum Manager" = " "
|
||||
"lxqt-config" = " "
|
||||
"systemsettings" = " "
|
||||
"qt5ct" = " "
|
||||
"qt6ct" = " "
|
||||
"yuzu" = " "
|
||||
"Olive" = " "
|
||||
"k3b" = " "
|
||||
"filelight" = " "
|
||||
"kid3" = " "
|
||||
"steam_app_0" = "⛨ "
|
||||
"MuseScore3" = " "
|
||||
"Tonelib Jam" = " "
|
||||
"trojita" = " "
|
||||
"pavucontrol-qt" = " "
|
||||
"Microsoft-edge" = " "
|
||||
"kristall" = " "
|
||||
"kate" = " "
|
||||
"XIVLauncher.Core" = " "
|
||||
"discover" = " "
|
||||
"ProtonUp-Qt" = " "
|
||||
"easyeffects" = " "
|
||||
"lsp-plugins" = " "
|
||||
"kaidan" = " "
|
||||
"KotatogramDesktop" = " "
|
||||
"betterbird" = " "
|
||||
"kdeconnect.app" = " "
|
||||
"Ardour" = "🎹"
|
||||
"Guitarix" = "🔥"
|
||||
"ToneLib Metal" = "🔥"
|
||||
"ToneLib GFX" = "🔥"
|
||||
"strawberry" = "🍓"
|
||||
"Falkon" = "🦅"
|
||||
"kinfocenter" = " "
|
||||
"plasma-systemmonitor" = " "
|
||||
"Eww" = " "
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
# vi: set ft=yaml :
|
||||
|
||||
add_paused: false
|
||||
|
||||
# List of feeds to watch.
|
||||
feeds:
|
||||
# - url: https://nyaa.si/?page=rss&q=erai+Ore+dake+Haireru+Kakushi+Dungeon+1080&c=1_2&f=0
|
||||
|
|
|
@ -10,4 +10,4 @@ bspc config focused_border_color "$color15"
|
|||
# Use the line below if you are on bspwm >= 0.9.4
|
||||
bspc config presel_feedback_color "$color1"
|
||||
|
||||
cd "$HOME/.cache/wal" && plasma-theme -c MoeDarkCustom.colors -w qt5ct-style || exit
|
||||
cd "$HOME/.cache/wal" && plasma-theme -c MoeDarkCustom.colors -w qt6ct-style || exit
|
||||
|
|
|
@ -3,5 +3,7 @@
|
|||
#podman run -d --name transmission-rss --restart=always --network=host \
|
||||
# -v "$HOME/Videos/transmission-rss.conf:/etc/transmission-rss.conf" \
|
||||
# docker.io/nning2/transmission-rss:latest
|
||||
#
|
||||
#podman start transmission-rss
|
||||
|
||||
podman start transmission-rss
|
||||
podman-compose -f ~/bin/docker-compose.yml up -d
|
||||
|
|
|
@ -4,6 +4,28 @@
|
|||
#
|
||||
# Read `man 5 sway` for a complete reference.
|
||||
|
||||
### Appearance
|
||||
# window corner radius in px
|
||||
corner_radius 10
|
||||
|
||||
# Window background blur
|
||||
blur enable
|
||||
blur_xray enable
|
||||
blur_passes 4
|
||||
blur_radius 5
|
||||
|
||||
shadows on
|
||||
shadows_on_csd off
|
||||
shadow_blur_radius 20
|
||||
shadow_color #0000007F
|
||||
|
||||
#layer_effects "*" blur enable; shadows enable; corner_radius 10
|
||||
|
||||
# inactive window fade amount. 0.0 = no dimming, 1.0 = fully dimmed
|
||||
default_dim_inactive 0.0
|
||||
dim_inactive_colors.unfocused #000000FF
|
||||
dim_inactive_colors.urgent #900000FF
|
||||
|
||||
### Variables
|
||||
#
|
||||
# Logo key. Use Mod1 for Alt.
|
||||
|
@ -42,6 +64,27 @@ output DP-2 mode 1920x1080@144Hz
|
|||
#
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
|
||||
# exec wl-paste -t text --watch clipman store --no-persist
|
||||
# exec swaybg -m fill -i ~/mpv-shot0007.png
|
||||
# exec source ~/.config/sway/env.sh
|
||||
exec kded6
|
||||
exec qdbus6 org.kde.kded6 /kded org.kde.kded6.loadModule appmenu
|
||||
exec dunst
|
||||
exec pipewire
|
||||
exec pipewire-pulse
|
||||
exec wireplumber
|
||||
exec eww daemon
|
||||
exec eww open clock
|
||||
exec mpd
|
||||
exec playerctld daemon
|
||||
exec mpDris2
|
||||
exec transmission-daemon
|
||||
exec ~/bin/transmission-rss
|
||||
|
||||
exec wl-paste --type text --watch cliphist store
|
||||
exec wl-paste --type image --watch cliphist store
|
||||
exec waybar -c ~/.config/waybar/config-hypr &
|
||||
|
||||
### Idle configuration
|
||||
#
|
||||
# Example configuration:
|
||||
|
@ -70,7 +113,8 @@ output DP-2 mode 1920x1080@144Hz
|
|||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
|
||||
input * xkb_layout "dvorak"
|
||||
input * xkb_layout "us"
|
||||
input * xkb_variant "dvorak"
|
||||
input * xkb_options "caps:backspace,lv3:ralt_switch,esperanto:dvorak,compose:sclk"
|
||||
|
||||
### Key bindings
|
||||
|
@ -97,7 +141,7 @@ input * xkb_options "caps:backspace,lv3:ralt_switch,esperanto:dvorak,compose:scl
|
|||
bindsym $mod+escape reload
|
||||
|
||||
# exit sway (logs you out of your Wayland session)
|
||||
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
bindsym $mod+Shift+escape exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
|
@ -236,4 +280,18 @@ bindsym XF86AudioPrev exec mpc prev
|
|||
bindsym XF86AudioNext exec mpc next
|
||||
bindsym XF86AudioStop exec mpc stop
|
||||
|
||||
for_window [window_role="About"] floating enable
|
||||
for_window [window_role="Organizer"] floating enable
|
||||
for_window [window_role="Preferences"] floating enable
|
||||
for_window [window_role="bubble"] floating enable
|
||||
for_window [window_role="page-info"] floating enable
|
||||
for_window [window_role="pop-up"] floating enable
|
||||
for_window [window_role="task_dialog"] floating enable
|
||||
for_window [window_role="toolbox"] floating enable
|
||||
for_window [window_role="webconsole"] floating enable
|
||||
for_window [window_type="dialog"] floating enable
|
||||
for_window [window_type="menu"] floating enable
|
||||
|
||||
exec_always --no-startup-id autotiling
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
|
29
sway/.config/sway/env.sh
Executable file
29
sway/.config/sway/env.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
export XCURSOR_SIZE=24
|
||||
#export QT_QPA_PLATFORM=wayland;xcb
|
||||
#export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
export QT_PLATFORM_PLUGIN=kde
|
||||
|
||||
export XDG_CURRENT_DESKTOP=KDE
|
||||
#export XDG_CURRENT_DESKTOP=Hyprland
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export XDG_SESSION_DESKTOP=Hyprland
|
||||
export KRITA_NO_STYLE_OVERRIDE=1
|
||||
|
||||
export GDK_BACKEND=wayland
|
||||
export QT_QPA_PLATFORM=xcb
|
||||
# export QT_QPA_PLATFORMTHEME=qt6ct #env = QT_STYLE_OVERRIDE,kvantum
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
export QT_AUTO_SCREEN_SCALE_FACTOR=1
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
|
||||
export MOZ_DISABLE_RDD_SANDBOX=1
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export GO111MODULE=on
|
||||
|
||||
export OZONE_PLATFORM=wayland
|
360
sway/.config/waybar/config-hypr
Normal file
360
sway/.config/waybar/config-hypr
Normal file
|
@ -0,0 +1,360 @@
|
|||
// vi: set ft=json :
|
||||
{
|
||||
// -------------------------------------------------------------------------
|
||||
// Global configuration
|
||||
// -------------------------------------------------------------------------
|
||||
"layer": "bottom",
|
||||
|
||||
"position": "top",
|
||||
|
||||
"height": 20,
|
||||
|
||||
"margin-left": 10,
|
||||
"margin-bottom": 0,
|
||||
"margin-right": 10,
|
||||
|
||||
"spacing": 5, // Gaps between modules (4px)
|
||||
|
||||
"modules-left": [
|
||||
//"custom/rofi",
|
||||
"hyprland/workspaces",
|
||||
//"hyprland/submap",
|
||||
//"temperature",
|
||||
//"idle_inhibitor",
|
||||
"mpd"
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/weather",
|
||||
"clock#date",
|
||||
//"backlight",
|
||||
//"custom/storage",
|
||||
//"memory",
|
||||
//"cpu",
|
||||
//"battery",
|
||||
//"pulseaudio",
|
||||
"wireplumber"
|
||||
],
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Modules
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
"custom/sp1": {
|
||||
"format": " | ",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/sp2": {
|
||||
"format": " |",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
|
||||
"custom/rofi": {
|
||||
"format": "",
|
||||
"tooltip": false,
|
||||
"on-click-right": "nwg-drawer",
|
||||
"on-click": "wofi --show run",
|
||||
"on-click-middle": "pkill -9 wofi"
|
||||
},
|
||||
"custom/screenshot_t":{
|
||||
"format":"",
|
||||
"on-click": "~/.config/hypr/scripts/screenshot_full",
|
||||
"on-click-right":"~/.config/hypr/scripts/screenshot_area"
|
||||
},
|
||||
|
||||
"clock#1": {
|
||||
"format": " {:%a}",
|
||||
"tooltip": false,
|
||||
"on-click": "gsimplecal"
|
||||
},
|
||||
"clock#2": {
|
||||
"format": " {:%d-%h-%Y}",
|
||||
"tooltip": false,
|
||||
"on-click": "gsimplecal"
|
||||
},
|
||||
"clock#3": {
|
||||
"format": " {:%H:%M:%S %p}",
|
||||
"tooltip": false,
|
||||
"on-click": "gsimplecal"
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
// "thermal-zone": 1,
|
||||
"interval": 4,
|
||||
//"hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": " {temperatureC}°C",
|
||||
"format-critical": " {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"max-length": 7,
|
||||
"min-length": 7,
|
||||
"on-click": "xsensors"
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 30,
|
||||
"format": " {used:0.2f} / {total:0.0f} GB",
|
||||
"on-click": "alacritty -e btop"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"interval": 2,
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": " {essid} ({signalStrength}%)",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format": "",
|
||||
"format-disconnected": "",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"on-click": "wl-copy $(ip address show up scope global | grep inet | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c5-)",
|
||||
"on-click-right": "wl-copy $(ip address show up scope global | grep inet6 | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c6-)",
|
||||
"tooltip-format": " {bandwidthUpBits} {bandwidthDownBits}\n{ifname}\n{ipaddr}/{cidr}\n",
|
||||
"tooltip-format-wifi": " {essid} {frequency}MHz\nStrength: {signaldBm}dBm ({signalStrength}%)\nIP: {ipaddr}/{cidr}\n {bandwidthUpBits} {bandwidthDownBits}",
|
||||
"interval": 10
|
||||
},
|
||||
"custom/storage": {
|
||||
"format": " {}",
|
||||
"format-alt": "{percentage}% ",
|
||||
"format-alt-click": "click-right",
|
||||
"return-type": "json",
|
||||
"interval": 60,
|
||||
"exec": "~/.config/waybar/modules/storage.sh"
|
||||
},
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{icon} {percent}%",
|
||||
"format-alt": "{percent}% {icon}",
|
||||
"format-alt-click": "click-right",
|
||||
//"format-icons": ["", ""],
|
||||
"format-icons": ["", ""],
|
||||
"on-scroll-down": "brightnessctl s 5%-",
|
||||
"on-scroll-up": "brightnessctl s +5%"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
},
|
||||
"tooltip": "true"
|
||||
},
|
||||
"custom/weather": {
|
||||
"format": "{}",
|
||||
"format-alt": "{alt}: {}",
|
||||
"format-alt-click": "click-right",
|
||||
"interval": 3600,
|
||||
"exec": "curl -s 'https://wttr.in/Bordeaux?format=1'",
|
||||
//"return-type": "json",
|
||||
//"exec": "~/.config/waybar/modules/weather.sh",
|
||||
"exec-if": "ping wttr.in -c1"
|
||||
},
|
||||
"custom/pacman": {
|
||||
"format": "<big></big> {}",
|
||||
"interval": 3600, // every hour
|
||||
"exec": "checkupdates | wc -l", // # of updates
|
||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
||||
"on-click": "alacritty -e 'paru'; pkill -SIGRTMIN+8 waybar", // update system
|
||||
"signal": 8,
|
||||
"max-length": 5,
|
||||
"min-length": 3
|
||||
},
|
||||
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
"format": "",
|
||||
"tooltip": false,
|
||||
"on-click": "wlogout"
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": " {:%H:%M %e %b}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"today-format": "<b>{}</b>"
|
||||
},
|
||||
|
||||
"clock#date": {
|
||||
"format": "❤️ {:%H:%M %e %b}", // Icon: calendar-alt
|
||||
//"format": "{:%I:%M %p %A %b %d}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"today-format": "<b>{}</b>"
|
||||
},
|
||||
|
||||
"custom/gammastep": {
|
||||
"interval": 5,
|
||||
"return-type": "json",
|
||||
"exec": {
|
||||
"pre": "if unit_status=\"$(systemctl --user is-active gammastep)\"; then\nstatus=\"$unit_status ($(journalctl --user -u gammastep.service -g 'Period: ' | tail -1 | cut -d ':' -f6 | xargs))\"\nelse\nstatus=\"$unit_status\"\nfi",
|
||||
"alt": "${status:-inactive}",
|
||||
"tooltip": "Gammastep is $status",
|
||||
},
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activating": " ",
|
||||
"deactivating": " ",
|
||||
"inactive": "? ",
|
||||
"active (Night)": " ",
|
||||
"active (Nighttime)": " ",
|
||||
"active (Transition (Night)": " ",
|
||||
"active (Transition (Nighttime)": " ",
|
||||
"active (Day)": " ",
|
||||
"active (Daytime)": " ",
|
||||
"active (Transition (Day)": " ",
|
||||
"active (Transition (Daytime)": " ",
|
||||
},
|
||||
"on-click": "systemctl --user is-active gammastep && systemctl --user stop gammastep || systemctl --user start gammastep",
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 1,
|
||||
//"format": " {}%", // Icon: microchip
|
||||
"format": "{max_frequency}GHz <span color=\"darkgray\">| {usage}%</span>",
|
||||
"max-length": 13,
|
||||
"min-length": 13
|
||||
},
|
||||
|
||||
"mpd": {
|
||||
"max-length": 25,
|
||||
"format": "<span foreground='#bb9af7'></span> {title}",
|
||||
"format-paused": " {title}",
|
||||
"format-stopped": "<span foreground='#bb9af7'></span>",
|
||||
"format-disconnected": "",
|
||||
"on-click": "mpc --quiet toggle",
|
||||
"on-click-right": "mpc update; mpc ls | mpc add",
|
||||
"on-click-middle": "alacritty -e ncmpcpp",
|
||||
"on-scroll-up": "mpc --quiet prev",
|
||||
"on-scroll-down": "mpc --quiet next",
|
||||
"smooth-scrolling-threshold": 5,
|
||||
"tooltip-format": "{title} - {artist} ({elapsedTime:%M:%S}/{totalTime:%H:%M:%S})"
|
||||
},
|
||||
|
||||
"custom/title": {
|
||||
"format": "{}",
|
||||
"interval": 0,
|
||||
"return-type": "json",
|
||||
//"max-length": 35,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"custom/title#name": {
|
||||
"format": "{}",
|
||||
"interval": 0,
|
||||
"return-type": "json",
|
||||
|
||||
"max-length": 35,
|
||||
"exec": "$HOME/.scripts/title"
|
||||
},
|
||||
|
||||
/*"custom/keyboard": {
|
||||
"format": " {}",
|
||||
"interval": 1,
|
||||
"exec": "$HOME/.config/waybar/get_kbdlayout.sh"
|
||||
},*/
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "",
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null",
|
||||
"sort-by-number": true,
|
||||
"active-only": false
|
||||
},
|
||||
|
||||
"hyprland/window": {
|
||||
"max-length": 100,
|
||||
"separate-outputs": true
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 3, // %, can be a float
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
//"format-source": "{volume}% ",
|
||||
//"format-source-muted": "",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "amixer sset Master toggle"
|
||||
},
|
||||
|
||||
"wireplumber": {
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "amixer sset Master toggle 1>/dev/null",
|
||||
//on-click: "${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
//on-scroll-down: "${wpctl} set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0.04+";
|
||||
//on-scroll-up: "${wpctl} set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0.04-";
|
||||
"format": "<span foreground='#fab387'>{icon}</span> {volume}%",
|
||||
"format-muted": " ",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
//"format-muted": "<span foreground='#fab387'> </span>",
|
||||
//"format-icons": [ "<span foreground='#fab387'></span>" ]
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [" ", " ", " "]
|
||||
},
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 15,
|
||||
"spacing": 5
|
||||
}
|
||||
}
|
|
@ -1,159 +0,0 @@
|
|||
// vi: set ft=json :
|
||||
{
|
||||
"layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["custom/alsa", "mpd", "temperature", "clock"],
|
||||
// Modules configuration
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"format": "{name}: {icon}",
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "",
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"mpd": {
|
||||
// "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
|
||||
"format": " {stateIcon} {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
"tooltip-format": "{:%Y-%m-%d | %H:%M}",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"hwmon-path" : "/sys/devices/pci0000:00/0000:00:03.1/0000:1c:00.0/hwmon/hwmon0/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
// "format-icons": ["", "", ""],
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphones": "",
|
||||
"handsfree": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/alsa": {
|
||||
"exec": "$HOME/.config/waybar/scripts/alsa.sh 2> /dev/null",
|
||||
// "on-click": "amixer set Master toggle; pkill -x -RTMIN+11 waybar",
|
||||
// "on-scroll-up": "amixer set Master 1+; pkill -x -RTMIN+11 waybar",
|
||||
// "on-scroll-down": "amixer set Master 1-; pkill -x -RTMIN+11 waybar",
|
||||
"signal": 11,
|
||||
"interval": 1,
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
128
sway/.config/waybar/mediaplayer.py
Executable file
128
sway/.config/waybar/mediaplayer.py
Executable file
|
@ -0,0 +1,128 @@
|
|||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import logging
|
||||
import sys
|
||||
import signal
|
||||
import gi
|
||||
import json
|
||||
gi.require_version('Playerctl', '2.0')
|
||||
from gi.repository import Playerctl, GLib
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def write_output(text, player):
|
||||
logger.info('Writing output')
|
||||
|
||||
output = {'text': text,
|
||||
'class': 'custom-' + player.props.player_name,
|
||||
'alt': player.props.player_name}
|
||||
|
||||
sys.stdout.write(json.dumps(output) + '\n')
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
def on_play(player, status, manager):
|
||||
logger.info('Received new playback status')
|
||||
on_metadata(player, player.props.metadata, manager)
|
||||
|
||||
|
||||
def on_metadata(player, metadata, manager):
|
||||
logger.info('Received new metadata')
|
||||
track_info = ''
|
||||
|
||||
if player.props.player_name == 'spotify' and \
|
||||
'mpris:trackid' in metadata.keys() and \
|
||||
':ad:' in player.props.metadata['mpris:trackid']:
|
||||
track_info = 'AD PLAYING'
|
||||
elif player.get_artist() != '' and player.get_title() != '':
|
||||
track_info = '{artist} - {title}'.format(artist=player.get_artist(),
|
||||
title=player.get_title())
|
||||
else:
|
||||
track_info = player.get_title()
|
||||
|
||||
if player.props.status != 'Playing' and track_info:
|
||||
track_info = ' ' + track_info
|
||||
write_output(track_info, player)
|
||||
|
||||
|
||||
def on_player_appeared(manager, player, selected_player=None):
|
||||
if player is not None and (selected_player is None or player.name == selected_player):
|
||||
init_player(manager, player)
|
||||
else:
|
||||
logger.debug("New player appeared, but it's not the selected player, skipping")
|
||||
|
||||
|
||||
def on_player_vanished(manager, player):
|
||||
logger.info('Player has vanished')
|
||||
sys.stdout.write('\n')
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
def init_player(manager, name):
|
||||
logger.debug('Initialize player: {player}'.format(player=name.name))
|
||||
player = Playerctl.Player.new_from_name(name)
|
||||
player.connect('playback-status', on_play, manager)
|
||||
player.connect('metadata', on_metadata, manager)
|
||||
manager.manage_player(player)
|
||||
on_metadata(player, player.props.metadata, manager)
|
||||
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
logger.debug('Received signal to stop, exiting')
|
||||
sys.stdout.write('\n')
|
||||
sys.stdout.flush()
|
||||
# loop.quit()
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
def parse_arguments():
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
# Increase verbosity with every occurance of -v
|
||||
parser.add_argument('-v', '--verbose', action='count', default=0)
|
||||
|
||||
# Define for which player we're listening
|
||||
parser.add_argument('--player')
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def main():
|
||||
arguments = parse_arguments()
|
||||
|
||||
# Initialize logging
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG,
|
||||
format='%(name)s %(levelname)s %(message)s')
|
||||
|
||||
# Logging is set by default to WARN and higher.
|
||||
# With every occurrence of -v it's lowered by one
|
||||
logger.setLevel(max((3 - arguments.verbose) * 10, 0))
|
||||
|
||||
# Log the sent command line arguments
|
||||
logger.debug('Arguments received {}'.format(vars(arguments)))
|
||||
|
||||
manager = Playerctl.PlayerManager()
|
||||
loop = GLib.MainLoop()
|
||||
|
||||
manager.connect('name-appeared', lambda *args: on_player_appeared(*args, arguments.player))
|
||||
manager.connect('player-vanished', on_player_vanished)
|
||||
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
signal.signal(signal.SIGTERM, signal_handler)
|
||||
|
||||
for player in manager.props.player_names:
|
||||
if arguments.player is not None and arguments.player != player.name:
|
||||
logger.debug('{player} is not the filtered player, skipping it'
|
||||
.format(player=player.name)
|
||||
)
|
||||
continue
|
||||
|
||||
init_player(manager, player)
|
||||
|
||||
loop.run()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
43
sway/.config/waybar/modules/mail.py
Executable file
43
sway/.config/waybar/modules/mail.py
Executable file
|
@ -0,0 +1,43 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
import imaplib
|
||||
|
||||
import mailsecrets
|
||||
|
||||
def getmails(username, password, server):
|
||||
imap = imaplib.IMAP4_SSL(server, 993)
|
||||
imap.login(username, password)
|
||||
imap.select('INBOX')
|
||||
ustatus, uresponse = imap.uid('search', None, 'UNSEEN')
|
||||
if ustatus == 'OK':
|
||||
unread_msg_nums = uresponse[0].split()
|
||||
else:
|
||||
unread_msg_nums = []
|
||||
|
||||
fstatus, fresponse = imap.uid('search', None, 'FLAGGED')
|
||||
if fstatus == 'OK':
|
||||
flagged_msg_nums = fresponse[0].split()
|
||||
else:
|
||||
flagged_msg_nums = []
|
||||
|
||||
return [len(unread_msg_nums), len(flagged_msg_nums)]
|
||||
|
||||
ping = os.system("ping " + mailsecrets.server + " -c1 > /dev/null 2>&1")
|
||||
if ping == 0:
|
||||
mails = getmails(mailsecrets.username, mailsecrets.password, mailsecrets.server)
|
||||
text = ''
|
||||
alt = ''
|
||||
|
||||
if mails[0] > 0:
|
||||
text = alt = str(mails[0])
|
||||
if mails[1] > 0:
|
||||
alt = str(mails[1]) + " " + alt
|
||||
else:
|
||||
exit(1)
|
||||
|
||||
print('{"text":"' + text + '", "alt": "' + alt + '"}')
|
||||
|
||||
else:
|
||||
exit(1)
|
||||
|
19
sway/.config/waybar/modules/spotify.sh
Executable file
19
sway/.config/waybar/modules/spotify.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
class=$(playerctl metadata --player=spotify --format '{{lc(status)}}')
|
||||
icon=""
|
||||
|
||||
if [[ $class == "playing" ]]; then
|
||||
info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}')
|
||||
if [[ ${#info} > 40 ]]; then
|
||||
info=$(echo $info | cut -c1-40)"..."
|
||||
fi
|
||||
text=$info" "$icon
|
||||
elif [[ $class == "paused" ]]; then
|
||||
text=$icon
|
||||
elif [[ $class == "stopped" ]]; then
|
||||
text=""
|
||||
fi
|
||||
|
||||
echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}"
|
||||
|
25
sway/.config/waybar/modules/storage.sh
Executable file
25
sway/.config/waybar/modules/storage.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
mount="/"
|
||||
warning=20
|
||||
critical=10
|
||||
|
||||
df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical '
|
||||
/\/.*/ {
|
||||
text=$4
|
||||
tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6
|
||||
use=$5
|
||||
exit 0
|
||||
}
|
||||
END {
|
||||
class=""
|
||||
gsub(/%$/,"",use)
|
||||
if ((100 - use) < critical) {
|
||||
class="critical"
|
||||
} else if ((100 - use) < warning) {
|
||||
class="warning"
|
||||
}
|
||||
print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}"
|
||||
}
|
||||
'
|
||||
|
80
sway/.config/waybar/modules/weather.sh
Executable file
80
sway/.config/waybar/modules/weather.sh
Executable file
|
@ -0,0 +1,80 @@
|
|||
#!/bin/bash
|
||||
|
||||
cachedir=~/.cache/rbn
|
||||
cachefile=${0##*/}-$1
|
||||
|
||||
if [ ! -d $cachedir ]; then
|
||||
mkdir -p $cachedir
|
||||
fi
|
||||
|
||||
if [ ! -f $cachedir/$cachefile ]; then
|
||||
touch $cachedir/$cachefile
|
||||
fi
|
||||
|
||||
# Save current IFS
|
||||
SAVEIFS=$IFS
|
||||
# Change IFS to new line.
|
||||
IFS=$'\n'
|
||||
|
||||
cacheage=$(($(date +%s) - $(stat -c '%Y' "$cachedir/$cachefile")))
|
||||
if [ $cacheage -gt 1740 ] || [ ! -s $cachedir/$cachefile ]; then
|
||||
data=($(curl -s https://en.wttr.in/$1\?0qnT 2>&1))
|
||||
echo ${data[0]} | cut -f1 -d, > $cachedir/$cachefile
|
||||
echo ${data[1]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile
|
||||
echo ${data[2]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile
|
||||
fi
|
||||
|
||||
weather=($(cat $cachedir/$cachefile))
|
||||
|
||||
# Restore IFSClear
|
||||
IFS=$SAVEIFS
|
||||
|
||||
temperature=$(echo ${weather[2]} | sed -E 's/([[:digit:]])+\.\./\1 to /g')
|
||||
|
||||
#echo ${weather[1]##*,}
|
||||
|
||||
# https://fontawesome.com/icons?s=solid&c=weather
|
||||
case $(echo ${weather[1]##*,} | tr '[:upper:]' '[:lower:]') in
|
||||
"clear" | "sunny")
|
||||
condition=""
|
||||
;;
|
||||
"partly cloudy")
|
||||
condition="杖"
|
||||
;;
|
||||
"cloudy")
|
||||
condition=""
|
||||
;;
|
||||
"overcast")
|
||||
condition=""
|
||||
;;
|
||||
"mist" | "fog" | "freezing fog")
|
||||
condition=""
|
||||
;;
|
||||
"patchy rain possible" | "patchy light drizzle" | "light drizzle" | "patchy light rain" | "light rain" | "light rain shower" | "rain")
|
||||
condition=""
|
||||
;;
|
||||
"moderate rain at times" | "moderate rain" | "heavy rain at times" | "heavy rain" | "moderate or heavy rain shower" | "torrential rain shower" | "rain shower")
|
||||
condition=""
|
||||
;;
|
||||
"patchy snow possible" | "patchy sleet possible" | "patchy freezing drizzle possible" | "freezing drizzle" | "heavy freezing drizzle" | "light freezing rain" | "moderate or heavy freezing rain" | "light sleet" | "ice pellets" | "light sleet showers" | "moderate or heavy sleet showers")
|
||||
condition="ﭽ"
|
||||
;;
|
||||
"blowing snow" | "moderate or heavy sleet" | "patchy light snow" | "light snow" | "light snow showers")
|
||||
condition="流"
|
||||
;;
|
||||
"blizzard" | "patchy moderate snow" | "moderate snow" | "patchy heavy snow" | "heavy snow" | "moderate or heavy snow with thunder" | "moderate or heavy snow showers")
|
||||
condition="ﰕ"
|
||||
;;
|
||||
"thundery outbreaks possible" | "patchy light rain with thunder" | "moderate or heavy rain with thunder" | "patchy light snow with thunder")
|
||||
condition=""
|
||||
;;
|
||||
*)
|
||||
condition=""
|
||||
echo -e "{\"text\":\""$condition"\", \"alt\":\""${weather[0]}"\", \"tooltip\":\""${weather[0]}: $temperature ${weather[1]}"\"}"
|
||||
;;
|
||||
esac
|
||||
|
||||
#echo $temp $condition
|
||||
|
||||
echo -e "{\"text\":\""$temperature $condition"\", \"alt\":\""${weather[0]}"\", \"tooltip\":\""${weather[0]}: $temperature ${weather[1]}"\"}"
|
||||
|
|
@ -1,207 +1,309 @@
|
|||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: "IosevkaNerdFont";
|
||||
font-size: 14px;
|
||||
min-height: 0;
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: IosevkaLyteTerm Nerd Font;
|
||||
font-size: 9pt;
|
||||
font-weight: 900;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(43, 48, 59, 0.5);
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
|
||||
/* Reset all styles */
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
min-height: 0;
|
||||
margin: 0.2em 0.3em 0.2em 0.3em;
|
||||
}
|
||||
|
||||
/* The whole bar */
|
||||
#waybar {
|
||||
/*background: @bg;*/
|
||||
background-color: transparent;
|
||||
/*color: @light;*/
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
transition-duration: 0.5s;
|
||||
/*border-top: 8px transparent;*/
|
||||
border-radius: 0px;
|
||||
margin: 0px 0px;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/*
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
border-bottom: 3px solid transparent;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
#workspaces button:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
box-shadow: inherit;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
padding: 0 0px;
|
||||
color: #7984a4;
|
||||
background-color: transparent;
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each workspace name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #64727D;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
background-color: transparent;
|
||||
}
|
||||
#workspace button.hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
#workspaces button.active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
#window {
|
||||
/* border-radius: 20px; */
|
||||
/* padding-left: 10px; */
|
||||
/* padding-right: 10px; */
|
||||
color: #64727d;
|
||||
}
|
||||
|
||||
/* Each module */
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#custom-media,
|
||||
#custom-alsa,
|
||||
#custom-screenshot_t,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
margin: 0 4px;
|
||||
color: #ffffff;
|
||||
#mpd,
|
||||
#bluetooth,
|
||||
#custom-hyprPicker,
|
||||
#custom-power-menu,
|
||||
#custom-spotify,
|
||||
#custom-weather,
|
||||
#custom-weather.severe,
|
||||
#custom-weather.sunnyDay,
|
||||
#custom-weather.clearNight,
|
||||
#custom-weather.cloudyFoggyDay,
|
||||
#custom-weather.cloudyFoggyNight,
|
||||
#custom-weather.rainyDay,
|
||||
#custom-weather.rainyNight,
|
||||
#custom-weather.showyIcyDay,
|
||||
#custom-weather.snowyIcyNight,
|
||||
#custom-weather.default {
|
||||
padding: 0px 15px;
|
||||
color: #e5e5e5;
|
||||
/* color: #bf616a; */
|
||||
border-radius: 20px;
|
||||
background-color: #1e1e1e;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #64727D;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
#window,
|
||||
#workspaces {
|
||||
border-radius: 20px;
|
||||
padding: 0px 10px;
|
||||
background-color: #1e1e1e;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
color: #fb958b;
|
||||
background-color: #1e1e1e;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #9b59b6;
|
||||
color: #ebcb8b;
|
||||
background-color: #1e1e1e;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #90b1b1;
|
||||
#custom-power-menu {
|
||||
border-radius: 9.5px;
|
||||
background-color: #1b242b;
|
||||
border-radius: 7.5px;
|
||||
padding: 0 0px;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
#custom-launcher {
|
||||
background-color: #1b242b;
|
||||
color: #6a92d7;
|
||||
border-radius: 7.5px;
|
||||
padding: 0 0px;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
#custom-weather.severe {
|
||||
color: #eb937d;
|
||||
}
|
||||
|
||||
#custom-weather.sunnyDay {
|
||||
color: #c2ca76;
|
||||
}
|
||||
|
||||
#custom-weather.clearNight {
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
#custom-weather.cloudyFoggyDay,
|
||||
#custom-weather.cloudyFoggyNight {
|
||||
color: #c2ddda;
|
||||
}
|
||||
|
||||
#custom-weather.rainyDay,
|
||||
#custom-weather.rainyNight {
|
||||
color: #5aaca5;
|
||||
}
|
||||
|
||||
#custom-weather.showyIcyDay,
|
||||
#custom-weather.snowyIcyNight {
|
||||
color: #d6e7e5;
|
||||
}
|
||||
|
||||
#custom-weather.default {
|
||||
color: #dbd9d8;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
color: #7d9bba;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
#backlight {
|
||||
/* color: #EBCB8B; */
|
||||
color: #8fbcbb;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: #c8d2e0;
|
||||
/* background-color: #14141e; */
|
||||
}
|
||||
|
||||
#battery {
|
||||
color: #c0caf5;
|
||||
/* background-color: #90b1b1; */
|
||||
}
|
||||
|
||||
#battery.charging,
|
||||
#battery.full,
|
||||
#battery.plugged {
|
||||
color: #26a65b;
|
||||
/* background-color: #26a65b; */
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: rgba(30, 34, 42, 0.5);
|
||||
color: #abb2bf;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
color: #f53c3c;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: #964b00;
|
||||
}
|
||||
|
||||
#bluetooth {
|
||||
color: #707d9d;
|
||||
}
|
||||
|
||||
#bluetooth.disconnected {
|
||||
color: #f53c3c;
|
||||
}
|
||||
|
||||
#network {
|
||||
color: #b48ead;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
color: #f53c3c;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#custom-alsa {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
background-color: #f0932b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: #2d3436;
|
||||
background-color: #2d3436;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
#language {
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
background-color: #f53c3c;
|
||||
#keyboard-state {
|
||||
background: #97e1ad;
|
||||
color: #000000;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
background-color: #90b1b1;
|
||||
#keyboard-state > label {
|
||||
padding: 0 0px;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
background-color: #51a37a;
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
|
10
sway/.config/waybar/waybar.sh
Executable file
10
sway/.config/waybar/waybar.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q waybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x waybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch main
|
||||
waybar
|
|
@ -66,7 +66,8 @@ alias bocchi 'sudo poweroff'
|
|||
alias play 'env SOX_OPTS="--buffer 20000 --play-rate-arg -hs" play'
|
||||
alias docker 'podman'
|
||||
alias docker-compose 'podman-compose'
|
||||
alias rekt 'yay -Rcsn'
|
||||
alias rekt 'yay -Rd'
|
||||
alias destroy 'yay -Rcsn'
|
||||
alias k 'yay -S'
|
||||
abbr - 'ssh'
|
||||
|
||||
|
|
|
@ -40,7 +40,8 @@ c.aliases = {'mpv': 'spawn --userscript view_in_mpv', 'q': 'quit', 'w': 'session
|
|||
# default, Qt determines the platform theme based on the desktop
|
||||
# environment.
|
||||
# Type: String
|
||||
c.qt.force_platformtheme = 'qt5ct'
|
||||
# c.qt.force_platformtheme = 'qt6ct'
|
||||
c.qt.force_platformtheme = ""
|
||||
|
||||
# Always restore open sites when qutebrowser is reopened.
|
||||
c.auto_save.session = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue