Compare commits
26 Commits
c8cfd433ae
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| c00be80234 | |||
| 7fb7498acc | |||
| 449dbcff24 | |||
| 317bc368e9 | |||
| d3689592e8 | |||
| e6a810d833 | |||
| 21579b281f | |||
| 68bdc0c85e | |||
| 64973efb33 | |||
| bed86c50dd | |||
| df6268f8c3 | |||
| 09ff97278c | |||
| 445e6a8c8b | |||
| b860c0ead1 | |||
| ed863b4ab1 | |||
| 498fd77851 | |||
| 19537a1499 | |||
| b7c9ca3ccc | |||
| 8c66096e81 | |||
| e6b2a1d3ee | |||
| 93b4b2730f | |||
| e9988b21ff | |||
| d6e9904bfc | |||
| aea1919a44 | |||
| da7ad42da9 | |||
| 13e5c8410e |
16
flake.lock
generated
16
flake.lock
generated
@@ -41,11 +41,11 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772847308,
|
"lastModified": 1772902533,
|
||||||
"narHash": "sha256-Gqi7kEVS+f7ZUbWPu3GWnmTA7HkLJLESdByPWlM/AeM=",
|
"narHash": "sha256-h88e8qZqWr7am6xZMgFHzs6iiZCXaHPYcrf0wWYLoE4=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "dcd330939be56daa7033b2a0572336c798a5c79f",
|
"rev": "ff97c41b022482beda79c9a0a835a94b371b78e0",
|
||||||
"revCount": 4,
|
"revCount": 6,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.esotericbytes.com/Blunkall-Technologies/Aurora"
|
"url": "https://gitea.esotericbytes.com/Blunkall-Technologies/Aurora"
|
||||||
},
|
},
|
||||||
@@ -324,11 +324,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772833450,
|
"lastModified": 1772891233,
|
||||||
"narHash": "sha256-W/2pHWOVr+jCr/Bzm1mndsZdg7kWjYsYsouLk1nCLLk=",
|
"narHash": "sha256-+cnUpHEmPxu0IizoeLWT/WB7LX5+f5NRShZ0zzpHFOs=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "4152ac76d0813d9d0f67d2f04653a13fa6e17433",
|
"rev": "73fca55e7c9dd19222c8c0cc331ddebf4c4bfddf",
|
||||||
"revCount": 6996,
|
"revCount": 7000,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
|
|||||||
@@ -44,7 +44,6 @@
|
|||||||
hyprland.enable = lib.mkDefault config.homeconfig.graphical;
|
hyprland.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
hyprlock.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
hyprlock.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
||||||
wal.enable = lib.mkDefault config.homeconfig.graphical;
|
wal.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
#hyprpanel.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
|
||||||
rofi.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
rofi.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
||||||
firefox.enable = lib.mkDefault config.homeconfig.graphical;
|
firefox.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,8 @@
|
|||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/hypr" = lib.mkIf config.homeconfig.hyprland.enable { source = ./hypr; recursive = true; };
|
".config/hypr" = lib.mkIf config.homeconfig.hyprland.enable { source = ./hypr; recursive = true; };
|
||||||
".config/hyprpanel" = lib.mkIf config.homeconfig.hyprpanel.enable { source = ./hyprpanel; recursive = true; };
|
|
||||||
".config/wal/templates" = lib.mkIf config.homeconfig.wal.enable { source = ./wal/templates; recursive = true; };
|
".config/wal/templates" = lib.mkIf config.homeconfig.wal.enable { source = ./wal/templates; recursive = true; };
|
||||||
".config/ohmyposh" = { source = ./ohmyposh; recursive = true; };
|
".config/ohmyposh" = { source = ./ohmyposh; recursive = true; };
|
||||||
".config/quickshell" = lib.mkIf config.homeconfig.quickshell.enable { source = ./quickshell; recursive = true; };
|
|
||||||
"Pictures/Wallpaper" = lib.mkIf config.homeconfig.graphical { source = ./Wallpaper; recursive = true; };
|
"Pictures/Wallpaper" = lib.mkIf config.homeconfig.graphical { source = ./Wallpaper; recursive = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
# #
|
# #
|
||||||
#------------------------------------------------#
|
#------------------------------------------------#
|
||||||
|
|
||||||
exec-once = hyprrun onSystemStart
|
exec-once = onSystemStart
|
||||||
|
|
||||||
# Some default env vars.
|
# Some default env vars.
|
||||||
env = XCURSOR_SIZE,16
|
env = XCURSOR_SIZE,16
|
||||||
@@ -48,7 +48,7 @@ general {
|
|||||||
col.active_border = $color1 $color5 100deg
|
col.active_border = $color1 $color5 100deg
|
||||||
col.inactive_border = $color0
|
col.inactive_border = $color0
|
||||||
|
|
||||||
layout = master
|
layout = scrolling
|
||||||
}
|
}
|
||||||
decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more
|
decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ animations {
|
|||||||
animation = border, 1, 10, default
|
animation = border, 1, 10, default
|
||||||
animation = borderangle, 1, 8, default
|
animation = borderangle, 1, 8, default
|
||||||
animation = fade, 1, 7, default
|
animation = fade, 1, 7, default
|
||||||
animation = workspaces, 1, 6, default
|
animation = workspaces, 1, 6, default, slidevert
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -93,6 +93,11 @@ master {
|
|||||||
new_status = "master"
|
new_status = "master"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scrolling {
|
||||||
|
column_width = 0.7
|
||||||
|
direction = "right"
|
||||||
|
}
|
||||||
|
|
||||||
misc {
|
misc {
|
||||||
disable_hyprland_logo = false
|
disable_hyprland_logo = false
|
||||||
disable_splash_rendering = true
|
disable_splash_rendering = true
|
||||||
@@ -107,11 +112,11 @@ ecosystem {
|
|||||||
# Binds
|
# Binds
|
||||||
$mainMod = ALT
|
$mainMod = ALT
|
||||||
|
|
||||||
bind = $mainMod SHIFT, E, exec, colorPrefix hyprrun kitty
|
bind = $mainMod SHIFT, E, exec, colorPrefix kitty
|
||||||
|
|
||||||
bind = $mainMod, B, exec, hyprrun firefox
|
bind = $mainMod, B, exec, firefox
|
||||||
|
|
||||||
bind = $mainMod SHIFT, B, exec, hyprrun firefox --private-window
|
bind = $mainMod SHIFT, B, exec, firefox --private-window
|
||||||
|
|
||||||
bind = $mainMod, Q, killactive,
|
bind = $mainMod, Q, killactive,
|
||||||
|
|
||||||
@@ -119,20 +124,20 @@ bind = $mainMod, Q, killactive,
|
|||||||
|
|
||||||
#bind = $mainMod SHIFT, R, exec, colorPrefix kitty -e _homeRebuild
|
#bind = $mainMod SHIFT, R, exec, colorPrefix kitty -e _homeRebuild
|
||||||
|
|
||||||
bind = $mainMod, F, exec, hyprrun thunar
|
bind = $mainMod, F, exec, thunar
|
||||||
bind = $mainMod SHIFT, F, fullscreen
|
bind = $mainMod SHIFT, F, fullscreen
|
||||||
|
|
||||||
bind = $mainMod SHIFT, semicolon, exec, colorPrefix hyprrun kitty -e lf
|
bind = $mainMod SHIFT, semicolon, exec, colorPrefix kitty -e lf
|
||||||
|
|
||||||
bind = $mainMod, Insert, exec, hyprrun libreoffice
|
bind = $mainMod, Insert, exec, libreoffice
|
||||||
|
|
||||||
bind = $mainMod, V, togglefloating,
|
bind = $mainMod, V, togglefloating,
|
||||||
|
|
||||||
bind = $mainMod SHIFT, V, exec, hyprrun vlc
|
bind = $mainMod SHIFT, V, exec, vlc
|
||||||
|
|
||||||
bind = , Menu, exec, rofi -show drun -show-icons -run-command 'hyprrun {cmd}'
|
bind = , Menu, exec, rofi -show drun -show-icons -run-command '{cmd}'
|
||||||
|
|
||||||
bind = $mainMod, Menu, exec, hyprrun hyprpanel -q; hyprrun hyprpanel
|
bind = $mainMod, Menu, exec, systemctl restart --user quickshell
|
||||||
|
|
||||||
#bind = $mainMod, P, pseudo, # dwindle
|
#bind = $mainMod, P, pseudo, # dwindle
|
||||||
#bind = $mainMod, Z, togglesplit, # dwindle
|
#bind = $mainMod, Z, togglesplit, # dwindle
|
||||||
@@ -140,34 +145,34 @@ bind = $mainMod, Menu, exec, hyprrun hyprpanel -q; hyprrun hyprpanel
|
|||||||
bind = $mainMod, N, layoutmsg, rollnext # master
|
bind = $mainMod, N, layoutmsg, rollnext # master
|
||||||
bind = $mainMod, P, layoutmsg, rollprev # master
|
bind = $mainMod, P, layoutmsg, rollprev # master
|
||||||
|
|
||||||
bind = $mainMod, M, exec, hyprrun spotify
|
bind = $mainMod, M, exec, spotify
|
||||||
|
|
||||||
bind = $mainMod SHIFT, M, exec, hyprrun firefox soundcloud.com/you/library
|
bind = $mainMod SHIFT, M, exec, firefox soundcloud.com/you/library
|
||||||
|
|
||||||
bind = $mainMod CTRL, M, exec, colorPrefix hyprrun kitty -e ncmpcpp -s browser
|
bind = $mainMod CTRL, M, exec, colorPrefix kitty -e ncmpcpp -s browser
|
||||||
|
|
||||||
bind = $mainMod, XF86AudioPlay, exec, hyprrun mpc load casual
|
bind = $mainMod, XF86AudioPlay, exec, mpc load casual
|
||||||
|
|
||||||
bind = , XF86AudioPlay, exec, hyprrun playerctl play-pause
|
bind = , XF86AudioPlay, exec, playerctl play-pause
|
||||||
|
|
||||||
bind = , XF86AudioPause, exec, hyprrun playerctl pause
|
bind = , XF86AudioPause, exec, playerctl pause
|
||||||
|
|
||||||
bind = , XF86AudioNext, exec, hyprrun playerctl next
|
bind = , XF86AudioNext, exec, playerctl next
|
||||||
|
|
||||||
bind = , XF86AudioPrev, exec, hyprrun playerctl previous
|
bind = , XF86AudioPrev, exec, playerctl previous
|
||||||
|
|
||||||
bind = , XF86Launch2, exec, hyprrun steam
|
bind = , XF86Launch2, exec, steam
|
||||||
bind = $mainMod, XF86Launch2, exec, hyprrun prismlauncher
|
bind = $mainMod, XF86Launch2, exec, prismlauncher
|
||||||
|
|
||||||
bind = , XF86Calculator, exec, hyprrun geogebra
|
bind = , XF86Calculator, exec, geogebra
|
||||||
|
|
||||||
bind = $mainMod SHIFT, Print, exec, hyprrun firefox localhost:631
|
bind = $mainMod SHIFT, Print, exec, firefox localhost:631
|
||||||
|
|
||||||
bind = $mainMod, Return, exec, hyprrun discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
bind = $mainMod, Return, exec, discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||||
|
|
||||||
bind = $mainMod CTRL, Return, exec, hyprrun firefox https://discord.com/app
|
bind = $mainMod CTRL, Return, exec, firefox https://discord.com/app
|
||||||
|
|
||||||
bind = , Home, exec, hyprrun setWallpaper
|
bind = , Home, exec, setWallpaper
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
bind = $mainMod, W, movefocus, u
|
bind = $mainMod, W, movefocus, u
|
||||||
@@ -203,26 +208,20 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|||||||
bind = $mainMod SHIFT, Home, movetoworkspace, 11
|
bind = $mainMod SHIFT, Home, movetoworkspace, 11
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
bind = $mainMod, right, workspace, e+1
|
bind = $mainMod, down, workspace, e+1
|
||||||
bind = $mainMod, left, workspace, e-1
|
bind = $mainMod, up, workspace, e-1
|
||||||
|
bind = $mainMod, left, layoutmsg, move -col
|
||||||
|
bind = $mainMod, right, layoutmsg, move +col
|
||||||
|
|
||||||
bind = $mainMod, H, exec, hyprctl keyword animation workspaces,1,6,default
|
bind = $mainMod, H, layoutmsg, move -col
|
||||||
bind = $mainMod, H, workspace, e-1
|
bind = $mainMod, J, workspace, r+1
|
||||||
bind = $mainMod, J, exec, hyprctl keyword animation workspaces,1,6,default,slidevert
|
bind = $mainMod, K, workspace, r-1
|
||||||
bind = $mainMod, J, workspace, e+1
|
bind = $mainMod, L, layoutmsg, move +col
|
||||||
bind = $mainMod, K, exec, hyprctl keyword animation workspaces,1,6,default,slidevert
|
|
||||||
bind = $mainMod, K, workspace, e-1
|
|
||||||
bind = $mainMod, L, exec, hyprctl keyword animation workspaces,1,6,default
|
|
||||||
bind = $mainMod, L, workspace, e+1
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, H, exec, hyprctl keyword animation workspaces,1,6,default
|
bind = $mainMod SHIFT, H, layoutmsg, swapcol l
|
||||||
bind = $mainMod SHIFT, H, movetoworkspace, e-1
|
bind = $mainMod SHIFT, J, movetoworkspace, r+1
|
||||||
bind = $mainMod SHIFT, J, exec, hyprctl keyword animation workspaces,1,6,default,slidevert
|
bind = $mainMod SHIFT, K, movetoworkspace, r-1
|
||||||
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
bind = $mainMod SHIFT, L, layoutmsg, swapcol r
|
||||||
bind = $mainMod SHIFT, K, exec, hyprctl keyword animation workspaces,1,6,default,slidevert
|
|
||||||
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
|
||||||
bind = $mainMod SHIFT, L, exec, hyprctl keyword animation workspaces,1,6,default
|
|
||||||
bind = $mainMod SHIFT, L, movetoworkspace, e+1
|
|
||||||
|
|
||||||
#switch network connections
|
#switch network connections
|
||||||
bind = CTRL SHIFT, Escape, exec, nmcli device down wlo1
|
bind = CTRL SHIFT, Escape, exec, nmcli device down wlo1
|
||||||
@@ -239,7 +238,7 @@ bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
|
|||||||
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%+
|
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%+
|
||||||
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%-
|
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%-
|
||||||
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
|
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
|
||||||
bind = $mainMod, F9, exec, hyprrun pavucontrol
|
bind = $mainMod, F9, exec, pavucontrol
|
||||||
|
|
||||||
#screen lock key
|
#screen lock key
|
||||||
#bind = $mainMod, F12, exec, swaylock
|
#bind = $mainMod, F12, exec, swaylock
|
||||||
@@ -279,7 +278,7 @@ bind = $mainMod, E, exec, pypr toggle kitty
|
|||||||
bind = $mainMod, C, exec, pypr toggle calendar
|
bind = $mainMod, C, exec, pypr toggle calendar
|
||||||
|
|
||||||
|
|
||||||
bind = CTRL SHIFT, Home, exec, hyprrun ssh nathan@esotericbytes.com -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen
|
bind = CTRL SHIFT, Home, exec, ssh nathan@esotericbytes.com -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen
|
||||||
bind = CTRL SHIFT, Home, submap, clean
|
bind = CTRL SHIFT, Home, submap, clean
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
{
|
|
||||||
"theme.font.name": "FiraCode Nerd Font Mono",
|
|
||||||
"theme.font.label": "FiraCode Nerd Font Mono Medium",
|
|
||||||
"theme.bar.floating": true,
|
|
||||||
"bar.layouts": {
|
|
||||||
"*": {
|
|
||||||
"left": [
|
|
||||||
"dashboard",
|
|
||||||
"workspaces",
|
|
||||||
"windowtitle",
|
|
||||||
"submap",
|
|
||||||
"kbinput"
|
|
||||||
],
|
|
||||||
"middle": [
|
|
||||||
"volume",
|
|
||||||
"battery",
|
|
||||||
"hyprsunset",
|
|
||||||
"clock",
|
|
||||||
"hypridle",
|
|
||||||
"network",
|
|
||||||
"bluetooth"
|
|
||||||
],
|
|
||||||
"right": [
|
|
||||||
"ram",
|
|
||||||
"storage",
|
|
||||||
"systray",
|
|
||||||
"cava",
|
|
||||||
"notifications",
|
|
||||||
"power"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"theme.bar.opacity": 50,
|
|
||||||
"wallpaper.image": "/tmp/nathan/bg",
|
|
||||||
"wallpaper.enable": false,
|
|
||||||
"theme.matugen_settings.scheme_type": "content",
|
|
||||||
"theme.matugen_settings.variation": "standard_2",
|
|
||||||
"theme.matugen": true,
|
|
||||||
"bar.launcher.autoDetectIcon": true,
|
|
||||||
"bar.network.truncation_size": 10,
|
|
||||||
"bar.bluetooth.label": false,
|
|
||||||
"bar.clock.showIcon": false,
|
|
||||||
"bar.clock.format": "%A %H:%M:%S %m/%d/%C%y",
|
|
||||||
"bar.notifications.show_total": true,
|
|
||||||
"bar.notifications.hideCountWhenZero": true,
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut2.command": "spotify",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.command": "$BROWSER",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.tooltip": "Browser",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.icon": "",
|
|
||||||
"menus.dashboard.directories.enabled": false,
|
|
||||||
"menus.dashboard.stats.enable_gpu": true,
|
|
||||||
"menus.power.lowBatteryNotification": true,
|
|
||||||
"bar.customModules.cava.leftClick": "menu:media",
|
|
||||||
"bar.customModules.cava.showIcon": false,
|
|
||||||
"bar.customModules.hypridle.label": false,
|
|
||||||
"bar.customModules.hyprsunset.label": false,
|
|
||||||
"bar.customModules.hyprsunset.temperature": "4000k",
|
|
||||||
"bar.customModules.netstat.dynamicIcon": true,
|
|
||||||
"bar.customModules.netstat.label": true,
|
|
||||||
"bar.workspaces.show_numbered": true,
|
|
||||||
"bar.workspaces.numbered_active_indicator": "highlight",
|
|
||||||
"bar.workspaces.ignored": "-\\d+",
|
|
||||||
"menus.clock.time.military": true,
|
|
||||||
"menus.clock.weather.enabled": false
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: t.contentWidth + 10
|
|
||||||
implicitHeight: 30
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Text {
|
|
||||||
id: t
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
text: {
|
|
||||||
if(hws.toplevels.values.length > 0) {
|
|
||||||
return Hyprland.activeToplevel.title
|
|
||||||
} else {
|
|
||||||
return " Desktop"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
property HyprlandWorkspace hws: Hyprland.focusedWorkspace
|
|
||||||
|
|
||||||
onHwsChanged: {
|
|
||||||
Hyprland.refreshToplevels()
|
|
||||||
Hyprland.refreshWorkspaces()
|
|
||||||
}
|
|
||||||
|
|
||||||
font.pointSize: 11
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Wayland
|
|
||||||
|
|
||||||
PanelWindow {
|
|
||||||
anchors {
|
|
||||||
top: true
|
|
||||||
//left: true
|
|
||||||
//right: true
|
|
||||||
//bottom: true
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
id: bar
|
|
||||||
|
|
||||||
exclusionMode: ExclusionMode.Ignore
|
|
||||||
WlrLayershell.layer: WlrLayer.Background
|
|
||||||
|
|
||||||
color: "#a0706050"
|
|
||||||
|
|
||||||
|
|
||||||
implicitHeight: 40
|
|
||||||
implicitWidth: 1900
|
|
||||||
|
|
||||||
/*RowLayout {
|
|
||||||
width: bar.width
|
|
||||||
}*/
|
|
||||||
RowLayout {
|
|
||||||
//Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
id: left
|
|
||||||
x: 0
|
|
||||||
y: parent.y + (parent.height - height) / 2
|
|
||||||
//width: center.x
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Launcher {
|
|
||||||
id: l
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
Layout.preferredWidth: width
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Workspaces {
|
|
||||||
id: ws
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
/*ActiveWindow {
|
|
||||||
id: aw
|
|
||||||
Layout.margins: 5
|
|
||||||
|
|
||||||
Layout.maximumWidth: Math.min(implicitWidth, center.x - (parent.x + x + Layout.margins))
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
//Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
||||||
id: center
|
|
||||||
x: (parent.width - cl.width) / 2 + parent.x - centerLeft.width
|
|
||||||
//y: parent.y + (parent.height - height) / 2
|
|
||||||
y: parent.y + (parent.height - height) / 2
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
id: centerLeft
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Volume {
|
|
||||||
id: v
|
|
||||||
window: bar
|
|
||||||
popupOffset: center.x
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Battery {
|
|
||||||
id: bat
|
|
||||||
window: bar
|
|
||||||
popupOffset: center.x
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Hyprsunset {
|
|
||||||
id: hs
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Clock {
|
|
||||||
id: cl
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
IdleInhibitor {
|
|
||||||
id: ii
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Wifi {
|
|
||||||
id: wifi
|
|
||||||
window: bar
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Bluetooth {
|
|
||||||
id: bt
|
|
||||||
window: bar
|
|
||||||
popupOffset: center.x + center.width
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
//Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
id: right
|
|
||||||
//implicitWidth: bar.width - (spacer.x + spacer.width)
|
|
||||||
x: bar.width - implicitWidth
|
|
||||||
y: parent.y + (parent.height - height) / 2
|
|
||||||
//Layout.maximumWidth: bar.width - (center.x + center.width)
|
|
||||||
//Layout.preferredWidth: 10
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Media {
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
id: media
|
|
||||||
|
|
||||||
implicitWidth: Math.min(textWidth, bar.width - (righter.width) - (center.x + center.width) - 10)
|
|
||||||
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
id: righter
|
|
||||||
spacing: 0
|
|
||||||
Tray {
|
|
||||||
id: tray
|
|
||||||
window: bar
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
popupOffset: right.x + righter.x + x
|
|
||||||
}
|
|
||||||
|
|
||||||
Notifications {
|
|
||||||
id: notif
|
|
||||||
window: bar
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Power {
|
|
||||||
id: power
|
|
||||||
window: bar
|
|
||||||
popupOffset: bar.width
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Services.UPower
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
width: 100; height: 30
|
|
||||||
color: "red"
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " " + Math.floor(UPower.displayDevice.percentage * 100) + "%"
|
|
||||||
font.pointSize: 12
|
|
||||||
implicitHeight: parent.height
|
|
||||||
//icon.color: "red"
|
|
||||||
//icon.source: "/nix/store/c4dcn4vl0v5njv4d587sazrad1xgyd9h-rose-pine-icon-theme-unstable-2022-09-01/share/icons/rose-pine/symbolic/devices/battery-symbolic.svg"
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
required property var window
|
|
||||||
required property real popupOffset
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: popupOffset
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 250
|
|
||||||
implicitHeight: 150
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.topMargin: 5
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
|
|
||||||
text: 'shutdown'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Bluetooth
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
|
|
||||||
|
|
||||||
radius: 5
|
|
||||||
implicitWidth: 30; implicitHeight: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: ""
|
|
||||||
font.pointSize: 16
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
|
|
||||||
required property PanelWindow window
|
|
||||||
required property real popupOffset
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: popupOffset - width
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 250
|
|
||||||
implicitHeight: 150
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
implicitWidth: parent.width - 2 * Layout.margins
|
|
||||||
implicitHeight: 30
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
||||||
Layout.margins: 5
|
|
||||||
color: "#ff3333aa"
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Text {
|
|
||||||
text: 'Bluetooth'
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
Switch {
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
//Layout.margins: 5
|
|
||||||
checked: Bluetooth.defaultAdapter.enabled
|
|
||||||
onClicked: Bluetooth.defaultAdapter.enabled = checked
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ScrollView {
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
||||||
Layout.margins: 5
|
|
||||||
|
|
||||||
implicitWidth: parent.width - 4 * Layout.margins
|
|
||||||
implicitHeight: menu.height / 2
|
|
||||||
|
|
||||||
id: scroll
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
|
|
||||||
id: rep
|
|
||||||
|
|
||||||
model: Bluetooth.devices.values
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
color: "#ff3333aa"
|
|
||||||
|
|
||||||
implicitWidth: menu.width - 3 * scroll.x
|
|
||||||
implicitHeight: 40
|
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
||||||
Layout.margins: 5
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Text {
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
|
|
||||||
text: rep.model[index].name
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.rightMargin: 5
|
|
||||||
text: 'Connect'
|
|
||||||
|
|
||||||
onClicked: rep.model[index].connected = !rep.model[index].connected
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: t.contentWidth + 10
|
|
||||||
implicitHeight: 30
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Text {
|
|
||||||
id: t
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
text: Qt.formatDateTime(clock.date, "dddd HH:mm:ss MM/dd/yyyy")
|
|
||||||
font.pointSize: 11
|
|
||||||
|
|
||||||
SystemClock {
|
|
||||||
id: clock
|
|
||||||
precision: SystemClock.Seconds
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
implicitWidth: 30; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
Process {
|
|
||||||
id: idlent
|
|
||||||
running: false
|
|
||||||
command: ["hyprsunset", "-t", "4000"]
|
|
||||||
|
|
||||||
onExited: {
|
|
||||||
running = button.text == " " ? false : true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
idlent.running = button.text == " " ? true : false
|
|
||||||
button.text = button.text == " " ? " " : " "
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
|
|
||||||
property real interval: 100
|
|
||||||
id: root
|
|
||||||
|
|
||||||
radius: 5
|
|
||||||
implicitWidth: 30; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
Process {
|
|
||||||
id: idlent
|
|
||||||
running: false
|
|
||||||
command: ["systemd-inhibit", "--what=idle", "sleep", root.interval.toString()]
|
|
||||||
|
|
||||||
onExited: {
|
|
||||||
running = button.text == " " ? false : true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
idlent.running = button.text == " " ? true : false
|
|
||||||
button.text = button.text == " " ? " " : " "
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
width: 30; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
Process {
|
|
||||||
id: launcher
|
|
||||||
running: false
|
|
||||||
command: ["rofi", "-show", "drun"]
|
|
||||||
}
|
|
||||||
onClicked: launcher.running = true
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Services.Mpris
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
id: media
|
|
||||||
height: 30
|
|
||||||
|
|
||||||
readonly property real textWidth: info.contentWidth + 10
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Text {
|
|
||||||
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
|
|
||||||
id: info
|
|
||||||
|
|
||||||
text: {
|
|
||||||
let s = ''
|
|
||||||
let players = []
|
|
||||||
|
|
||||||
Mpris.players.values.forEach((p) => {
|
|
||||||
if(p.isPlaying) players.push(p)
|
|
||||||
})
|
|
||||||
|
|
||||||
if(players[0]?.trackTitle) {
|
|
||||||
s += players[0].trackTitle
|
|
||||||
}
|
|
||||||
if(players[0]?.trackAlbum) {
|
|
||||||
s += ' - ' + players[0].trackAlbum
|
|
||||||
}
|
|
||||||
if(players[0]?.trackArtist) {
|
|
||||||
s += ' - ' + players[0].trackArtist
|
|
||||||
}
|
|
||||||
|
|
||||||
media.visible = players.length > 0
|
|
||||||
|
|
||||||
return s
|
|
||||||
}
|
|
||||||
font.pointSize: 11
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,183 +0,0 @@
|
|||||||
import Quickshell
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Services.Notifications
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
|
|
||||||
Item {
|
|
||||||
width: 50
|
|
||||||
height: 30
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
id: barbutton
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: ""
|
|
||||||
//text: server.trackedNotifications.values.length == 0 ? "" : ' ' + server.trackedNotifications.values.length
|
|
||||||
//icon.source: ''
|
|
||||||
font.pointSize: 16
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
|
|
||||||
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
NotificationServer {
|
|
||||||
id: server
|
|
||||||
persistenceSupported: true
|
|
||||||
imageSupported: true
|
|
||||||
actionsSupported: true
|
|
||||||
bodyImagesSupported: true
|
|
||||||
bodySupported: true
|
|
||||||
bodyHyperlinksSupported: true
|
|
||||||
inlineReplySupported: true
|
|
||||||
actionIconsSupported: true
|
|
||||||
|
|
||||||
onNotification: (n) => {
|
|
||||||
n.tracked = true
|
|
||||||
console.log(n?.body)
|
|
||||||
button.text = ' ' + (server.trackedNotifications.values.length + 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
required property PanelWindow window
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: window.width - width
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 400
|
|
||||||
implicitHeight: 1080 - anchor.rect.y
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
color: "#ff706050"
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
id: lay
|
|
||||||
|
|
||||||
spacing: 10
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
Layout.margins: 5
|
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignTop
|
|
||||||
implicitWidth: menu.width - 2 * Layout.margins
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
width: parent.width
|
|
||||||
Text {
|
|
||||||
Layout.margins: 5
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
text: 'Notifications'
|
|
||||||
}
|
|
||||||
Button {
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
|
||||||
Layout.margins: 5
|
|
||||||
implicitWidth: 20
|
|
||||||
implicitHeight: 20
|
|
||||||
|
|
||||||
text: 'x'
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
while(server.trackedNotifications.values.length > 0) {
|
|
||||||
server.trackedNotifications.values[0].dismiss()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
id: rep
|
|
||||||
|
|
||||||
model: server.trackedNotifications.values
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
||||||
Layout.margins: 5
|
|
||||||
radius: 10
|
|
||||||
implicitWidth: parent.width - 2 * Layout.margins
|
|
||||||
implicitHeight: 100
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Image {
|
|
||||||
//anchors.fill: parent
|
|
||||||
source: {
|
|
||||||
let icon = rep.model[index].image
|
|
||||||
if (icon.includes("?path=")) {
|
|
||||||
const [name, path] = icon.split("?path=");
|
|
||||||
icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
|
|
||||||
}
|
|
||||||
return icon
|
|
||||||
}
|
|
||||||
|
|
||||||
Layout.maximumWidth: 100
|
|
||||||
Layout.maximumHeight: 100
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
Layout.topMargin: 10
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
|
||||||
Text {
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
|
||||||
text: rep.model[index].summary
|
|
||||||
Layout.leftMargin: 10
|
|
||||||
font.pointSize: 14
|
|
||||||
}
|
|
||||||
Text {
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
|
||||||
text: rep.model[index].body
|
|
||||||
Layout.leftMargin: 10
|
|
||||||
font.pointSize: 12
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
|
||||||
|
|
||||||
onClicked: mouse => {
|
|
||||||
if(mouse.button == Qt.LeftButton) {
|
|
||||||
button.text = rep.count - 1 <= 0 ? "" : ' ' + (rep.count - 1)
|
|
||||||
rep.model[index].dismiss()
|
|
||||||
//button.text = server.trackedNotifications.values.length == 0 ? "" : ' ' + server.trackedNotifications.values.length
|
|
||||||
} else if(mouse.button == Qt.RightButton) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
import Quickshell
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
width: 30
|
|
||||||
height: 30
|
|
||||||
|
|
||||||
id: root
|
|
||||||
|
|
||||||
required property PanelWindow window
|
|
||||||
required property real popupOffset
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
width: 30; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: popupOffset
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 150
|
|
||||||
implicitHeight: 250
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.topMargin: 5
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
|
|
||||||
text: 'shutdown'
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
text: 'reboot'
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
text: 'logout'
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.bottomMargin: 10
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
text: 'sleep'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Services.SystemTray
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: 10 + rep.count * (2 * lay.spacing + 20)
|
|
||||||
height: 30
|
|
||||||
visible: SystemTray.items.values.length != 0
|
|
||||||
|
|
||||||
id: root
|
|
||||||
required property var window
|
|
||||||
required property real popupOffset
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
RowLayout {
|
|
||||||
id: lay
|
|
||||||
spacing: 4
|
|
||||||
Repeater {
|
|
||||||
id: rep
|
|
||||||
|
|
||||||
model: SystemTray.items
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
||||||
radius: 10
|
|
||||||
implicitWidth: 20
|
|
||||||
implicitHeight: 20
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
Image {
|
|
||||||
anchors.fill: parent
|
|
||||||
source: {
|
|
||||||
let icon = SystemTray.items.values[index].icon
|
|
||||||
if (icon.includes("?path=")) {
|
|
||||||
const [name, path] = icon.split("?path=");
|
|
||||||
icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
|
|
||||||
}
|
|
||||||
return icon
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
|
||||||
|
|
||||||
onClicked: (mouse) => {
|
|
||||||
if(mouse.button == Qt.LeftButton) {
|
|
||||||
SystemTray.items.values[index].activate()
|
|
||||||
} else if(mouse.button == Qt.RightButton) {
|
|
||||||
SystemTray.items.values[index].display(root.window, popupOffset, 40)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
import Quickshell // for PanelWindow
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Services.Pipewire
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
width: 100; height: 30
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " " + Math.floor(Pipewire.defaultAudioSink?.audio?.volume * 100) + "%"
|
|
||||||
font.pointSize: 12
|
|
||||||
implicitHeight: parent.height
|
|
||||||
|
|
||||||
PwObjectTracker {
|
|
||||||
objects: [ Pipewire.defaultAudioSink ]
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
required property var window
|
|
||||||
required property real popupOffset
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: popupOffset
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 250
|
|
||||||
implicitHeight: 150
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ScrollView {
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Text {
|
|
||||||
text: 'Output Devices'
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Text {
|
|
||||||
text: 'Input Devices'
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
/*Repeater {
|
|
||||||
id: in
|
|
||||||
|
|
||||||
model: {
|
|
||||||
set = []
|
|
||||||
Pipewire.nodes.values.forEach(n => { !n.isSink && !n.isStream ? set.push(n) : return })
|
|
||||||
return set
|
|
||||||
}
|
|
||||||
|
|
||||||
Text {
|
|
||||||
text: in.model[index].nickname
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
import Quickshell
|
|
||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: 30
|
|
||||||
implicitHeight: 30
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
Button {
|
|
||||||
id: button
|
|
||||||
text: " "
|
|
||||||
font.pointSize: 16
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
menu.visible = true
|
|
||||||
grab.active = true
|
|
||||||
}
|
|
||||||
implicitHeight: parent.height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
property var window: null
|
|
||||||
id: root
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
|
|
||||||
id: menu
|
|
||||||
|
|
||||||
anchor.window: window
|
|
||||||
anchor.rect.x: root.parent.x + root.parent.width - width
|
|
||||||
anchor.rect.y: 50
|
|
||||||
implicitWidth: 250
|
|
||||||
implicitHeight: 150
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
|
|
||||||
implicitHeight: parent.height - 20
|
|
||||||
implicitWidth: parent.width
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
|
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.topMargin: 5
|
|
||||||
x: (parent.width - width) / 2
|
|
||||||
implicitWidth: parent.width - 10
|
|
||||||
implicitHeight: parent.height / 5 - parent.spacing
|
|
||||||
|
|
||||||
text: 'shutdown'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: grab
|
|
||||||
windows: [ menu ]
|
|
||||||
onCleared: menu.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
import QtQuick // for Text
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Hyprland
|
|
||||||
import Quickshell.Widgets
|
|
||||||
|
|
||||||
Item {
|
|
||||||
implicitWidth: 10 + rep.count * (2 * lay.spacing + 25)
|
|
||||||
implicitHeight: 30
|
|
||||||
|
|
||||||
Component.onCompleted: Hyprland.refreshWorkspaces()
|
|
||||||
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
radius: 5
|
|
||||||
anchors.fill: parent
|
|
||||||
RowLayout {
|
|
||||||
id: lay
|
|
||||||
Repeater {
|
|
||||||
id: rep
|
|
||||||
|
|
||||||
property var ws: {
|
|
||||||
let arr = [];
|
|
||||||
Hyprland.workspaces.values.forEach((w) => { if(w.id > 0) arr.push(w) })
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
|
|
||||||
model: ws
|
|
||||||
ClippingWrapperRectangle {
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
||||||
radius: 10
|
|
||||||
implicitWidth: 25
|
|
||||||
Button {
|
|
||||||
background: Rectangle {
|
|
||||||
color: Hyprland.focusedWorkspace.id == rep.model[index].id ? "#ffff00ff" : "#ff7744dd"
|
|
||||||
anchors.fill: parent
|
|
||||||
}
|
|
||||||
text: rep.model[index].id
|
|
||||||
onClicked: rep.model[index].activate()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
//@ pragma Env QS_NO_RELOAD_POPUP=1
|
|
||||||
//@ pragma Env QSG_RENDER_LOOP=threaded
|
|
||||||
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
|
|
||||||
|
|
||||||
//@ pragma UseQApplication
|
|
||||||
|
|
||||||
import Quickshell // for ShellRoot
|
|
||||||
import qs.modules
|
|
||||||
|
|
||||||
ShellRoot {
|
|
||||||
Bar {
|
|
||||||
id: bar
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
openssh
|
openssh
|
||||||
sops
|
sops
|
||||||
dig
|
dig
|
||||||
toybox
|
#toybox
|
||||||
btop
|
btop
|
||||||
zip
|
zip
|
||||||
unzip
|
unzip
|
||||||
@@ -83,7 +83,6 @@
|
|||||||
quickemu
|
quickemu
|
||||||
bottles
|
bottles
|
||||||
|
|
||||||
pkgs-us.runapp
|
|
||||||
brightnessctl
|
brightnessctl
|
||||||
libdbusmenu-gtk3
|
libdbusmenu-gtk3
|
||||||
lmms
|
lmms
|
||||||
|
|||||||
@@ -62,15 +62,12 @@
|
|||||||
cp /tmp/nathan/tmp.jpg /tmp/nathan/tmp2.jpg
|
cp /tmp/nathan/tmp.jpg /tmp/nathan/tmp2.jpg
|
||||||
pidof mpvpaper && pkill mpvpaper
|
pidof mpvpaper && pkill mpvpaper
|
||||||
${pkgs.swww}/bin/swww img /tmp/nathan/tmp.jpg -t wipe >> ''$out
|
${pkgs.swww}/bin/swww img /tmp/nathan/tmp.jpg -t wipe >> ''$out
|
||||||
${pkgs.hyprpanel}/bin/hyprpanel sw /tmp/nathan/tmp2.jpg >> ''$out
|
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
hyprctl dispatch exec "${pkgs.mpvpaper}/bin/mpvpaper ALL ''$img -o loop"
|
hyprctl dispatch exec "${pkgs.mpvpaper}/bin/mpvpaper ALL ''$img -o loop"
|
||||||
${pkgs.hyprpanel}/bin/hyprpanel sw /tmp/nathan/tmp.jpg >> ''$out
|
|
||||||
rm /tmp/nathan/tmp2.jpg
|
rm /tmp/nathan/tmp2.jpg
|
||||||
else
|
else
|
||||||
pidof mpvpaper && pkill mpvpaper
|
pidof mpvpaper && pkill mpvpaper
|
||||||
hyprctl dispatch exec "${pkgs.swww}/bin/swww img ''$img -t wipe" >> ''$out
|
hyprctl dispatch exec "${pkgs.swww}/bin/swww img ''$img -t wipe" >> ''$out
|
||||||
${pkgs.hyprpanel}/bin/hyprpanel sw "''$img" >> ''$out
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
changeColors "''$img" "''$2" >> ''$out
|
changeColors "''$img" "''$2" >> ''$out
|
||||||
|
|||||||
@@ -15,6 +15,10 @@
|
|||||||
|
|
||||||
programs.aurora = {
|
programs.aurora = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -33,20 +33,21 @@
|
|||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
package = null;
|
||||||
|
portalPackage = null;
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = false;
|
enable = true;
|
||||||
variables = [ "--all" ];
|
variables = [ "--all" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = (if config.homeconfig.hyprpanel.enable then ''
|
extraConfig = ''
|
||||||
bind = , Print, exec, bash -c ${pkgs.hyprpanel}/share/scripts/screenshot.sh"
|
bind = , Print, exec, grim -g "$(slurp)" > ~/Pictures/screenshots/$(date +"%m-%d-%Y_%H:%M:%S").png
|
||||||
'' else ''
|
|
||||||
bind = , Print, exec, grim -g "$(slurp)"
|
|
||||||
'') + ''
|
|
||||||
source = ${config.home.homeDirectory}/.config/hypr/main.conf
|
source = ${config.home.homeDirectory}/.config/hypr/main.conf
|
||||||
|
|
||||||
exec-shutdown = if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then rm ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid; fi
|
exec-shutdown = if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then rm ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid; fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
flake.homeModules.nathan = { config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.hyprpanel.enable = with lib; mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprpanel.enable {
|
|
||||||
|
|
||||||
programs.hyprpanel = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
flake.homeModules.nathan = { config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.quickshell.enable = with lib; mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.quickshell.enable {
|
|
||||||
|
|
||||||
programs.quickshell = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
configs = {
|
|
||||||
|
|
||||||
default = config.homeDirectory + "/${config.home.file.".config/quickshell".target}";
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
target = lib.mkIf config.homeconfig.hyprland.enable "wayland-session@Hyprland.target";
|
|
||||||
};
|
|
||||||
|
|
||||||
activeConfig = "default";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
builders = "ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -";
|
builders = "ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -";
|
||||||
builders-use-substituters = true;
|
builders-use-substitutes = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Submodule machines/homebox updated: 105eb3477a...a3cab8fb9a
Submodule machines/laptop updated: 3c3c77825f...49bf885661
@@ -126,7 +126,6 @@
|
|||||||
minimal = false;
|
minimal = false;
|
||||||
hyprland.enable = false;
|
hyprland.enable = false;
|
||||||
wal.enable = false;
|
wal.enable = false;
|
||||||
hyprpanel.enable = false;
|
|
||||||
hyprlock.enable = false;
|
hyprlock.enable = false;
|
||||||
mpd.enable = true;
|
mpd.enable = true;
|
||||||
calcurse.enable = true;
|
calcurse.enable = true;
|
||||||
|
|||||||
@@ -71,7 +71,6 @@
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
hyprland.enable = false;
|
hyprland.enable = false;
|
||||||
hyprpanel.enable = false;
|
|
||||||
steam.enable = false;
|
steam.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -63,11 +63,12 @@
|
|||||||
hyprlock.enable = true;
|
hyprlock.enable = true;
|
||||||
wal.enable = true;
|
wal.enable = true;
|
||||||
mpd.enable = true;
|
mpd.enable = true;
|
||||||
hyprpanel.enable = true;
|
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
git.enable = false;
|
git.enable = false;
|
||||||
nh.enable = true;
|
nh.enable = true;
|
||||||
|
|
||||||
|
aurora.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -61,7 +61,6 @@
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
steam.enable = mkDefault true;
|
steam.enable = mkDefault true;
|
||||||
hyprpanel.enable = mkDefault true;
|
|
||||||
hyprland.enable = mkDefault true;
|
hyprland.enable = mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -75,12 +75,12 @@
|
|||||||
hyprlock.enable = true;
|
hyprlock.enable = true;
|
||||||
wal.enable = true;
|
wal.enable = true;
|
||||||
mpd.enable = true;
|
mpd.enable = true;
|
||||||
hyprpanel.enable = true;
|
|
||||||
calcurse.enable = true;
|
calcurse.enable = true;
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
#git.enable = true;
|
#git.enable = true;
|
||||||
nh.enable = true;
|
nh.enable = true;
|
||||||
|
aurora.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
flake.nixosModules.default = { config, lib, pkgs, nixpkgs, ... }: {
|
flake.nixosModules.default = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
options.sysconfig = with lib; {
|
options.sysconfig = with lib; {
|
||||||
host = mkOption {
|
host = mkOption {
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
networking.hostName = lib.mkDefault config.sysconfig.host;
|
networking.hostName = lib.mkDefault config.sysconfig.host;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
nixPath = [ "nixpkgs=${nixpkgs}" ];
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
channel.enable = false;
|
channel.enable = false;
|
||||||
settings = {
|
settings = {
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
flake.nixosModules.default = { config, lib, pkgs, hyprland, ... }: {
|
flake.nixosModules.default = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
options.sysconfig.programs.hyprland.enable = lib.options.mkOption {
|
options.sysconfig.programs.hyprland.enable = lib.options.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
@@ -13,19 +13,43 @@
|
|||||||
|
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = let
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
#pkgs-us = import inputs.nixpkgs-us { inherit system; };
|
||||||
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
withUWSM = true;
|
withUWSM = false;
|
||||||
|
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
|
|
||||||
systemd.setPath.enable = true;
|
systemd.setPath.enable = true;
|
||||||
|
|
||||||
package = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
package = inputs.hyprland.packages.${system}.hyprland;
|
||||||
|
|
||||||
portalPackage = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
portalPackage = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
upower.enable = true;
|
||||||
|
gvfs.enable = true;
|
||||||
|
power-profiles-daemon.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
bluez
|
||||||
|
bluez-tools
|
||||||
|
libgtop
|
||||||
|
dart-sass
|
||||||
|
wl-clipboard
|
||||||
|
gtksourceview
|
||||||
|
libsoup_3
|
||||||
|
brightnessctl
|
||||||
|
swww
|
||||||
|
hyprpicker
|
||||||
|
hyprsunset
|
||||||
|
wf-recorder
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
flake.nixosModules.default = { config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.sysconfig.programs.hyprpanel.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.programs.hyprpanel.enable {
|
|
||||||
services = {
|
|
||||||
upower.enable = true;
|
|
||||||
gvfs.enable = true;
|
|
||||||
power-profiles-daemon.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
bluez
|
|
||||||
bluez-tools
|
|
||||||
libgtop
|
|
||||||
dart-sass
|
|
||||||
wl-clipboard
|
|
||||||
gtksourceview
|
|
||||||
libsoup_3
|
|
||||||
brightnessctl
|
|
||||||
swww
|
|
||||||
hyprpicker
|
|
||||||
hyprsunset
|
|
||||||
wf-recorder
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{ ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
flake.nixosModules.default = { config, lib, nixpkgs-us, ... }: {
|
flake.nixosModules.default = { config, lib, ... }: {
|
||||||
|
|
||||||
options.sysconfig = {
|
options.sysconfig = {
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
pkgs-us = import nixpkgs-us {
|
pkgs-us = import inputs.nixpkgs-us {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
};
|
};
|
||||||
in lib.mkIf config.sysconfig.services.netbird.enable {
|
in lib.mkIf config.sysconfig.services.netbird.enable {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ ... }: {
|
{ inputs, ... }: {
|
||||||
|
|
||||||
flake.nixosModules.default = { config, lib, nixpkgs-us, ... }: {
|
flake.nixosModules.default = { config, lib, ... }: {
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
sysconfig.services.ollama.enable = lib.options.mkOption {
|
sysconfig.services.ollama.enable = lib.options.mkOption {
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
OLLAMA_CONTEXT_LENGTH = lib.mkDefault "16000";
|
OLLAMA_CONTEXT_LENGTH = lib.mkDefault "16000";
|
||||||
};
|
};
|
||||||
package = let
|
package = let
|
||||||
pkgs-us = import nixpkgs-us {
|
pkgs-us = import inputs.nixpkgs-us {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -128,6 +128,11 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.settings.trusted-users = (builtins.filter
|
||||||
|
(y: config.sysconfig.users.${y}.isSuperuser)
|
||||||
|
(builtins.attrNames config.sysconfig.users)
|
||||||
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user