mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Compare commits
4 commits
03111e3461
...
0691e38add
Author | SHA1 | Date | |
---|---|---|---|
0691e38add | |||
f0840a99ac | |||
5283a87013 | |||
c73893b5a5 |
|
@ -96,7 +96,24 @@
|
||||||
mpv
|
mpv
|
||||||
yt-dlp
|
yt-dlp
|
||||||
blender-hip
|
blender-hip
|
||||||
cura
|
# cura is moderately broken on wayland, so use xwayland
|
||||||
|
(pkgs.cura.overrideAttrs (oldAttrs: {
|
||||||
|
postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem {
|
||||||
|
name = "com.ultimaker.cura";
|
||||||
|
icon = "cura-icon";
|
||||||
|
desktopName = "Cura";
|
||||||
|
exec = "env QT_QPA_PLATFORM=xcb ${pkgs.cura}/bin/cura %F";
|
||||||
|
tryExec = "env QT_QPA_PLATFORM=xcb ${pkgs.cura}/bin/cura";
|
||||||
|
terminal = false;
|
||||||
|
type = "Application";
|
||||||
|
categories = ["Graphics"];
|
||||||
|
mimeTypes = ["model/stl" "application/vnd.ms-3mfdocument" "application/prs.wavefront-obj"
|
||||||
|
"image/bmp" "image/gif" "image/jpeg" "image/png" "text/x-gcode" "application/x-amf"
|
||||||
|
"application/x-ply" "application/x-ctm" "model/vnd.collada+xml" "model/gltf-binary"
|
||||||
|
"model/gltf+json" "model/vnd.collada+xml+zip"];
|
||||||
|
})}/share/applications $out/share'';
|
||||||
|
}))
|
||||||
|
(pkgs.writeShellScriptBin "curax" ''env QT_QPA_PLATFORM=xcb ${pkgs.cura}/bin/cura'')
|
||||||
curaengine_stable
|
curaengine_stable
|
||||||
openscad
|
openscad
|
||||||
(stdenv.mkDerivation {
|
(stdenv.mkDerivation {
|
||||||
|
|
|
@ -87,6 +87,8 @@ ext xopp~, has blender, X, flag f = xournalpp "$@" &>/dev/null
|
||||||
ext helio, has helio, X, flag f = helio "$@" &>/dev/null
|
ext helio, has helio, X, flag f = helio "$@" &>/dev/null
|
||||||
ext kdenlive, has kdenlive-accel, X, flag f = kdenlive-accel "$@" &>/dev/null
|
ext kdenlive, has kdenlive-accel, X, flag f = kdenlive-accel "$@" &>/dev/null
|
||||||
ext flp, has flstudio, X, flag f = flstudio "$@" &>/dev/null
|
ext flp, has flstudio, X, flag f = flstudio "$@" &>/dev/null
|
||||||
|
ext 3mf, has curax, X, flag f = curax "$@" &>/dev/null
|
||||||
|
ext 3mf, has cura, X flag f = cura "$@" &>/dev/null
|
||||||
|
|
||||||
#--------------------------------------------
|
#--------------------------------------------
|
||||||
# Scripts
|
# Scripts
|
||||||
|
|
|
@ -6,6 +6,7 @@ in
|
||||||
../../app/terminal/alacritty.nix
|
../../app/terminal/alacritty.nix
|
||||||
../../app/terminal/kitty.nix
|
../../app/terminal/kitty.nix
|
||||||
(import ../../app/dmenu-scripts/networkmanager-dmenu.nix {
|
(import ../../app/dmenu-scripts/networkmanager-dmenu.nix {
|
||||||
|
#dmenu_command = "fuzzel -d -f ${userSettings.font} :size=16"; inherit config lib pkgs;
|
||||||
dmenu_command = "fuzzel -d"; inherit config lib pkgs;
|
dmenu_command = "fuzzel -d"; inherit config lib pkgs;
|
||||||
})
|
})
|
||||||
../input/nihongo.nix
|
../input/nihongo.nix
|
||||||
|
@ -34,14 +35,25 @@ in
|
||||||
exec-once = dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY
|
exec-once = dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY
|
||||||
exec-once = hyprctl setcursor '' + config.gtk.cursorTheme.name + " " + builtins.toString config.gtk.cursorTheme.size + ''
|
exec-once = hyprctl setcursor '' + config.gtk.cursorTheme.name + " " + builtins.toString config.gtk.cursorTheme.size + ''
|
||||||
|
|
||||||
|
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||||
|
env = XDG_SESSION_TYPE,wayland
|
||||||
|
env = XDG_SESSION_DESKTOP,Hyprland
|
||||||
|
env = WLR_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1
|
||||||
|
env = GDK_BACKEND,wayland,x11,*
|
||||||
|
env = QT_QPA_PLATFORM,wayland;xcb
|
||||||
|
env = QT_QPA_PLATFORMTHEME,qt5ct
|
||||||
|
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||||
|
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||||
|
env = CLUTTER_BACKEND,wayland
|
||||||
|
|
||||||
exec-once = hyprprofile Default
|
exec-once = hyprprofile Default
|
||||||
|
|
||||||
exec-once = pypr
|
exec-once = pypr
|
||||||
exec-once = ydotoold
|
exec-once = ydotoold
|
||||||
exec-once = element-desktop --hidden
|
|
||||||
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
|
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
|
||||||
exec-once = nm-applet
|
exec-once = nm-applet
|
||||||
exec-once = blueman-applet
|
exec-once = blueman-applet
|
||||||
|
exec-once = hypr-element-start
|
||||||
exec-once = GOMAXPROCS=1 syncthing --no-browser
|
exec-once = GOMAXPROCS=1 syncthing --no-browser
|
||||||
exec-once = protonmail-bridge --noninteractive
|
exec-once = protonmail-bridge --noninteractive
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
|
@ -283,9 +295,6 @@ in
|
||||||
force_zero_scaling = true
|
force_zero_scaling = true
|
||||||
}
|
}
|
||||||
|
|
||||||
env = WLR_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1
|
|
||||||
env = QT_QPA_PLATFORMTHEME,qt5ct
|
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
movefocus_cycles_fullscreen = false
|
movefocus_cycles_fullscreen = false
|
||||||
}
|
}
|
||||||
|
@ -405,6 +414,10 @@ in
|
||||||
nwg-dock-hyprland -f -x -i 64 -nolauncher -a start -ml 8 -mr 8 -mb 8
|
nwg-dock-hyprland -f -x -i 64 -nolauncher -a start -ml 8 -mr 8 -mb 8
|
||||||
fi
|
fi
|
||||||
'')
|
'')
|
||||||
|
(pkgs.writeScriptBin "hypr-element-start" ''
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
sleep 6 && element-desktop --hidden
|
||||||
|
'')
|
||||||
(pkgs.writeScriptBin "hypr-element" ''
|
(pkgs.writeScriptBin "hypr-element" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if hyprctl clients | grep "class: Element" > /dev/null
|
if hyprctl clients | grep "class: Element" > /dev/null
|
||||||
|
@ -978,7 +991,9 @@ in
|
||||||
programs.fuzzel.enable = true;
|
programs.fuzzel.enable = true;
|
||||||
programs.fuzzel.settings = {
|
programs.fuzzel.settings = {
|
||||||
main = {
|
main = {
|
||||||
font = userSettings.font + ":size=13";
|
font = userSettings.font + ":size=20";
|
||||||
|
dpi-aware = "no";
|
||||||
|
show-actions = "yes";
|
||||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||||
};
|
};
|
||||||
colors = {
|
colors = {
|
||||||
|
|
Loading…
Reference in a new issue