this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

more eww and hyprland

+37 -32
+1 -1
.config/eww/scripts/bluetooth
··· 34 34 icon="󰂯" 35 35 color="#b4befe" 36 36 else 37 - icon="" 37 + icon="󰂲" 38 38 text="Disconnected" 39 39 color="#45475a" 40 40 fi
+1 -2
.config/eww/scripts/parse_workspaces.py
··· 45 45 for (workspace, pid) in workspace_pids: 46 46 workspace = int(workspace) 47 47 48 - result = subprocess.run(["ps", "-p", f"{pid}", "-o", "comm="], 49 - capture_output=True) 48 + result = subprocess.run(["ps", "-p", f"{id}", "-o", "comm="], capture_output=True) 50 49 processname = str(result.stdout.strip())[2:-1] 51 50 52 51 if processname in icon_map:
+1 -4
.config/eww/scripts/parse_workspaces_hyprland.py
··· 19 19 "emacs": "", 20 20 "dolphin": "", 21 21 "plasma-systemmo": "", 22 - "keepassxc": "󰌆", 22 + "org.keepassxc.KeePassXC": "󰌆", 23 23 "no-icon": "", 24 24 "default": "" 25 25 } ··· 66 66 icon = icon_map['no-icon'] 67 67 68 68 if workspace in icons and workspace != -1: 69 - #print(workspace) 70 69 icons[workspace]["icons"].append(icon) 71 70 elif workspace != -1: 72 - #print(workspace) 73 71 icons[workspace] = { 74 72 "icons": [icon], 75 73 "workspace": workspace, ··· 77 75 "current": True if current_workspace == workspace else False 78 76 } 79 77 if current_workspace not in icons and current_workspace != -1: 80 - #print(current_workspace) 81 78 icons[current_workspace] = { 82 79 "icons": [icon_map["default"]], 83 80 "workspace": current_workspace,
+12 -10
.config/eww/scripts/parse_workspaces_sway.py
··· 1 1 #!/usr/bin/env python3 2 2 3 3 """ 4 - parse_workspaces_hyprland.py 4 + parse_workspaces_sway.py 5 5 6 - Goes through all workspaces with windows using hyprctrl 6 + Goes through all workspaces with windows using i3ipc 7 7 And returns a JSON list of text for each workspace, usually a Nerd font icon 8 8 """ 9 9 ··· 42 42 if current_window_title == str(current_workspace): 43 43 current_window_title = "" 44 44 icons = {} 45 - clients = i3.get_workspaces() 45 + clients = i3.get_tree().workspaces() 46 46 for client in clients: 47 47 workspace = client.num 48 48 try: 49 - processname = i3.get_tree().ipc_data['nodes'][1]['nodes'][workspace-1]['nodes'][0]['app_id'] 49 + processname = clients[workspace-1].ipc_data['nodes'][0]['app_id'] 50 50 except IndexError: 51 51 processname = "" 52 52 except KeyError: 53 53 processname = "" 54 - if workspace == None or processname == None: 55 - break 56 54 if processname in icon_map: 57 55 icon = icon_map[processname] 58 56 else: 59 57 icon = icon_map['no-icon'] 60 58 61 - if workspace in icons and workspace != -1: 62 - icons[workspace]["icons"].append(icon) 63 - elif workspace != -1: 59 + if workspace in icons: 60 + icons[workspace]["icons"] = [icon] 61 + else: 64 62 icons[workspace] = { 65 63 "icons": [icon], 66 64 "workspace": workspace, 67 65 "process": processname, 68 66 "current": True if current_workspace == workspace else False 69 67 } 70 - if current_workspace not in icons and current_workspace != -1: 68 + if current_workspace not in icons: 71 69 icons[current_workspace] = { 72 70 "icons": [icon_map["default"]], 73 71 "workspace": current_workspace, ··· 91 89 i3.on(Event.WINDOW_CLOSE, get_workspaces) 92 90 i3.on(Event.WINDOW_MOVE, get_workspaces) 93 91 i3.on(Event.WORKSPACE_FOCUS, get_workspaces) 92 + i3.on(Event.WORKSPACE_INIT, get_workspaces) 93 + i3.on(Event.WORKSPACE_MOVE, get_workspaces) 94 + i3.on(Event.WORKSPACE_EMPTY, get_workspaces) 95 + i3.on(Event.WORKSPACE_RESTORED, get_workspaces) 94 96 i3.main() 95 97 96 98 if __name__ == "__main__":
+2 -2
.config/eww/workspaces.yuck
··· 14 14 ;; Implementation 15 15 (deflisten workspace_str 16 16 :initial_value "{}" 17 - "$HOME/.config/eww/scripts/parse_workspaces_sway.py") 17 + "$HOME/.config/eww/scripts/parse_workspaces_hyprland.py") 18 18 19 19 (defwidget workspaces [] 20 20 (box ··· 26 26 (for workspace in "${workspace_str['icons']}" 27 27 (eventbox 28 28 :cursor "pointer" 29 - :onclick "swaymsg workspace ${workspace.workspace}" 29 + :onclick "hyprctl dispatch workspace ${workspace.workspace}" 30 30 (box 31 31 :spacing 10 32 32 :space-evenly false
-1
.config/foot/foot.ini
··· 2 2 3 3 pad=14x14 4 4 5 - shell=nu 6 5 7 6 [tweak] 8 7 damage-whole-window=yes
+15 -12
.config/hypr/hyprland.conf
··· 1 1 source=~/.config/hypr/macchiato.conf 2 2 3 3 monitor=eDP-1, 1920x1080, 0x0, 1.4 4 - #xwayland { 5 - # force_zero_scaling = true 6 - #} 4 + xwayland { 5 + force_zero_scaling = true 6 + } 7 7 env = GDK_SCALE,2 8 8 env = XCURSOR_SIZE,32 9 9 ··· 52 52 gaps_out = 14 53 53 border_size = 4 54 54 col.active_border = $mauve $lavender 45deg 55 - col.inactive_border = $surface1 55 + col.inactive_border = $surface1 $surface2 56 56 57 57 layout = dwindle 58 58 } ··· 60 60 decoration { 61 61 # See https://wiki.hyprland.org/Configuring/Variables/ for more 62 62 63 - rounding = 7 63 + rounding = 4 64 64 drop_shadow = yes 65 - shadow_range = 4 65 + shadow_range = 6 66 66 shadow_render_power = 3 67 67 col.shadow = rgba(1a1a1aee) 68 68 } ··· 74 74 75 75 bezier = myBezier, 0.05, 0.9, 0.1, 1.05 76 76 77 - animation = windows, 1, 1, myBezier 78 - animation = windowsOut, 1, 1, default, popin 80% 79 - animation = border, 1, 1, default 80 - animation = borderangle, 1, 1, default 81 - animation = fade, 1, 1, default 82 - animation = workspaces, 1, 1, default 77 + animation = windows, 1, 0.8, myBezier 78 + animation = windowsOut, 1, 0.8, default, popin 80% 79 + animation = border, 1, 0.8, default 80 + animation = borderangle, 1, 0.8, default 81 + animation = fade, 1, 0.8, default 82 + animation = workspaces, 1, 0.8, default 83 83 } 84 84 85 85 dwindle { ··· 131 131 windowrule=move 1178 857,title:^coolFlag$ 132 132 windowrule=move 1178 182,title:^coolPerf$ 133 133 windowrule=move 618 1110,title:^coolNeo$ 134 + 135 + windowrule=workspace 1,title:^(firefox-esr)(.*)$ 136 + windowrule=workspace 3,title:^(emacs)(.*)$ 134 137 135 138 layerrule=blur,^(swaync-control-center)$ 136 139 $mainMod = SUPER
+1
.config/rofi/catppuccin-macchiato.rasi
··· 21 21 border: 3px; 22 22 border-color: @border-col; 23 23 background-color: @bg-col; 24 + border-radius: 10px; 24 25 } 25 26 26 27 mainbox {
+3
.config/sway/config
··· 252 252 # Toggle control center 253 253 bindsym $mod+Shift+n exec swaync-client -t -sw 254 254 255 + layer_effects "eww" blur enable; shadows enable; 256 + 257 + 255 258 256 259 include /etc/sway/config.d/*
+1
.gitignore
··· 1 1 [#]*[#] 2 2 __pycache__/ 3 3 *~ 4 + *.swp