This repository has no description
0

Configure Feed

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

sway: nix fmt

+128 -95
+1 -1
tools/lockscreen/flake-module.nix
··· 1 1 { 2 2 perSystem = 3 - { pkgs, lib, ... }: 3 + { pkgs, ... }: 4 4 { 5 5 packages.lockscreen = pkgs.writeShellApplication { 6 6 name = "lockscreen";
+127 -94
2configs/desktops/sway/default.nix
··· 3 3 4 4 term = "/run/current-system/sw/bin/alacritty"; 5 5 6 - waybarConfig = pkgs.writeText "waybar-config.json" (builtins.toJSON { 7 - height = 30; 8 - spacing = 4; 9 - modules-left = [ "sway/workspaces" "sway/mode" "sway/scratchpad" ]; 10 - modules-center = [ "sway/window" ]; 11 - modules-right = [ 12 - "idle_inhibitor" 13 - "pulseaudio" 14 - "network" 15 - "cpu" 16 - "memory" 17 - "temperature" 18 - "backlight" 19 - "battery" 20 - "clock" 21 - "tray" 22 - ]; 6 + waybarConfig = pkgs.writeText "waybar-config.json" ( 7 + builtins.toJSON { 8 + height = 30; 9 + spacing = 4; 10 + modules-left = [ 11 + "sway/workspaces" 12 + "sway/mode" 13 + "sway/scratchpad" 14 + ]; 15 + modules-center = [ "sway/window" ]; 16 + modules-right = [ 17 + "idle_inhibitor" 18 + "pulseaudio" 19 + "network" 20 + "cpu" 21 + "memory" 22 + "temperature" 23 + "backlight" 24 + "battery" 25 + "clock" 26 + "tray" 27 + ]; 23 28 24 - "sway/mode".format = "<span style=\"italic\">{}</span>"; 29 + "sway/mode".format = "<span style=\"italic\">{}</span>"; 25 30 26 - "sway/scratchpad" = { 27 - format = "{icon} {count}"; 28 - show-empty = false; 29 - format-icons = [ "" "󰏃" ]; 30 - tooltip = true; 31 - tooltip-format = "{app}: {title}"; 32 - }; 33 - 34 - idle_inhibitor = { 35 - format = "{icon}"; 36 - format-icons = { 37 - activated = "󰅶"; 38 - deactivated = "󰾪"; 31 + "sway/scratchpad" = { 32 + format = "{icon} {count}"; 33 + show-empty = false; 34 + format-icons = [ 35 + "" 36 + "󰏃" 37 + ]; 38 + tooltip = true; 39 + tooltip-format = "{app}: {title}"; 39 40 }; 40 - }; 41 41 42 - tray.spacing = 10; 43 - 44 - clock = { 45 - tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"; 46 - format-alt = "{:%Y-%m-%d}"; 47 - }; 48 - 49 - cpu = { 50 - format = "{usage}% 󰍛"; 51 - tooltip = false; 52 - }; 53 - 54 - memory.format = "{}% 󰘚"; 55 - 56 - temperature = { 57 - critical-threshold = 80; 58 - format = "{temperatureC}°C {icon}"; 59 - format-icons = [ "󰔏" "󰔏" "󰔏" ]; 60 - }; 61 - 62 - backlight = { 63 - format = "{percent}% {icon}"; 64 - format-icons = [ "󰃞" "󰃟" "󰃠" ]; 65 - }; 66 - 67 - battery = { 68 - states = { 69 - warning = 30; 70 - critical = 15; 42 + idle_inhibitor = { 43 + format = "{icon}"; 44 + format-icons = { 45 + activated = "󰅶"; 46 + deactivated = "󰾪"; 47 + }; 71 48 }; 72 - format = "{capacity}% {icon}"; 73 - format-full = "{capacity}% {icon}"; 74 - format-charging = "{capacity}% 󰂄"; 75 - format-plugged = "{capacity}% 󰚥"; 76 - format-alt = "{time} {icon}"; 77 - format-icons = [ "󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; 78 - }; 79 49 80 - network = { 81 - format-wifi = "{essid} ({signalStrength}%) 󰖩"; 82 - format-ethernet = "{ipaddr}/{cidr} 󰈀"; 83 - tooltip-format = "{ifname} via {gwaddr} 󰛳"; 84 - format-linked = "{ifname} (No IP) 󰈀"; 85 - format-disconnected = "Disconnected 󰖪"; 86 - format-alt = "{ifname}: {ipaddr}/{cidr}"; 87 - }; 50 + tray.spacing = 10; 88 51 89 - pulseaudio = { 90 - format = "{volume}% {icon} {format_source}"; 91 - format-bluetooth = "{volume}% {icon}󰂯 {format_source}"; 92 - format-bluetooth-muted = "󰖁 {icon}󰂯 {format_source}"; 93 - format-muted = "󰖁 {format_source}"; 94 - format-source = "{volume}% 󰍬"; 95 - format-source-muted = "󰍭"; 96 - format-icons = { 97 - headphone = "󰋋"; 98 - hands-free = "󰋎"; 99 - headset = "󰋎"; 100 - phone = "󰏲"; 101 - portable = "󰏲"; 102 - car = "󰄋"; 103 - default = [ "󰕿" "󰖀" "󰕾" ]; 52 + clock = { 53 + tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"; 54 + format-alt = "{:%Y-%m-%d}"; 104 55 }; 105 - on-click = "pavucontrol"; 106 - }; 107 - }); 56 + 57 + cpu = { 58 + format = "{usage}% 󰍛"; 59 + tooltip = false; 60 + }; 61 + 62 + memory.format = "{}% 󰘚"; 63 + 64 + temperature = { 65 + critical-threshold = 80; 66 + format = "{temperatureC}°C {icon}"; 67 + format-icons = [ 68 + "󰔏" 69 + "󰔏" 70 + "󰔏" 71 + ]; 72 + }; 73 + 74 + backlight = { 75 + format = "{percent}% {icon}"; 76 + format-icons = [ 77 + "󰃞" 78 + "󰃟" 79 + "󰃠" 80 + ]; 81 + }; 82 + 83 + battery = { 84 + states = { 85 + warning = 30; 86 + critical = 15; 87 + }; 88 + format = "{capacity}% {icon}"; 89 + format-full = "{capacity}% {icon}"; 90 + format-charging = "{capacity}% 󰂄"; 91 + format-plugged = "{capacity}% 󰚥"; 92 + format-alt = "{time} {icon}"; 93 + format-icons = [ 94 + "󰂎" 95 + "󰁺" 96 + "󰁻" 97 + "󰁼" 98 + "󰁽" 99 + "󰁾" 100 + "󰁿" 101 + "󰂀" 102 + "󰂁" 103 + "󰂂" 104 + "󰁹" 105 + ]; 106 + }; 107 + 108 + network = { 109 + format-wifi = "{essid} ({signalStrength}%) 󰖩"; 110 + format-ethernet = "{ipaddr}/{cidr} 󰈀"; 111 + tooltip-format = "{ifname} via {gwaddr} 󰛳"; 112 + format-linked = "{ifname} (No IP) 󰈀"; 113 + format-disconnected = "Disconnected 󰖪"; 114 + format-alt = "{ifname}: {ipaddr}/{cidr}"; 115 + }; 116 + 117 + pulseaudio = { 118 + format = "{volume}% {icon} {format_source}"; 119 + format-bluetooth = "{volume}% {icon}󰂯 {format_source}"; 120 + format-bluetooth-muted = "󰖁 {icon}󰂯 {format_source}"; 121 + format-muted = "󰖁 {format_source}"; 122 + format-source = "{volume}% 󰍬"; 123 + format-source-muted = "󰍭"; 124 + format-icons = { 125 + headphone = "󰋋"; 126 + hands-free = "󰋎"; 127 + headset = "󰋎"; 128 + phone = "󰏲"; 129 + portable = "󰏲"; 130 + car = "󰄋"; 131 + default = [ 132 + "󰕿" 133 + "󰖀" 134 + "󰕾" 135 + ]; 136 + }; 137 + on-click = "pavucontrol"; 138 + }; 139 + } 140 + ); 108 141 109 142 waybarStyle = pkgs.writeText "waybar-style.css" '' 110 143 @import "${pkgs.waybar}/etc/xdg/waybar/style.css";