have systemd manage nextcloud, add scratchpad
This commit is contained in:
+3
-1
@@ -1,2 +1,4 @@
|
||||
enable_selector = false
|
||||
selector = "rofi -dmenu -p 'Open With: '"
|
||||
selector = "rofi -dmenu -i -p 'Open With: '"
|
||||
term_exec_args = '-e'
|
||||
expand_wildcards = false
|
||||
|
||||
+26
-23
@@ -6,6 +6,20 @@
|
||||
// Input device configuration.
|
||||
// Find the full list of options on the wiki:
|
||||
// https://niri-wm.github.io/niri/Configuration:-Input
|
||||
environment {
|
||||
XDG_SESSION_TYPE "wayland"
|
||||
MOZ_ENABLE_WAYLAND "1"
|
||||
GTK_USE_PORTAL "1"
|
||||
GDK_BACKEND "wayland"
|
||||
QT_QPA_PLATFORM "wayland"
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION "1"
|
||||
QT_QPA_PLATFORMTHEME "qt6ct"
|
||||
SDL_VIDEODRIVER "wayland"
|
||||
ELECTRON_OZONE_PLATFORM_HINT "wayland"
|
||||
XDG_CURRENT_DESKTOP "niri"
|
||||
QT_STYLE_OVERRIDE "kvantum"
|
||||
}
|
||||
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
@@ -336,6 +350,9 @@ binds {
|
||||
Mod+D hotkey-overlay-title="Run an Application: rofi" { spawn "rofi" "-combi-modi" "window,drun" "-show" "combi" "-modi" "combi" "-show-icons"; }
|
||||
Mod+Shift+Home hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "--screenshots" "--effect-pixelate" "10" "--clock"; }
|
||||
|
||||
Mod+Shift+Minus { spawn "nirius" "scratchpad-toggle"; }
|
||||
Mod+Minus { spawn "nirius" "scratchpad-show"; }
|
||||
|
||||
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
|
||||
// Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.
|
||||
// For example, this is a standard bind to toggle the screen reader (orca).
|
||||
@@ -388,14 +405,7 @@ binds {
|
||||
Mod+Ctrl+J { move-window-down; }
|
||||
Mod+Ctrl+K { move-window-up; }
|
||||
Mod+Ctrl+L { move-column-right; }
|
||||
|
||||
// Alternative commands that move across workspaces when reaching
|
||||
// the first or last window in a column.
|
||||
// Mod+J { focus-window-or-workspace-down; }
|
||||
// Mod+K { focus-window-or-workspace-up; }
|
||||
// Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
|
||||
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||
|
||||
|
||||
Mod+Home { focus-column-first; }
|
||||
Mod+End { focus-column-last; }
|
||||
Mod+Ctrl+Home { move-column-to-first; }
|
||||
@@ -543,24 +553,16 @@ binds {
|
||||
// Center all fully visible columns on screen.
|
||||
Mod+Ctrl+C { center-visible-columns; }
|
||||
|
||||
// Finer width adjustments.
|
||||
// This command can also:
|
||||
// * set width in pixels: "1000"
|
||||
// * adjust width in pixels: "-5" or "+5"
|
||||
// * set width as a percentage of screen width: "25%"
|
||||
// * adjust width as a percentage of screen width: "-10%" or "+10%"
|
||||
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
|
||||
// set-column-width "100" will make the column occupy 200 physical screen pixels.
|
||||
Mod+Minus { set-column-width "-10%"; }
|
||||
Mod+Equal { set-column-width "+10%"; }
|
||||
//Mod+Minus { set-column-width "-10%"; }
|
||||
//Mod+Equal { set-column-width "+10%"; }
|
||||
|
||||
// Finer height adjustments when in column with other windows.
|
||||
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||
//Mod+Shift+Minus { set-window-height "-10%"; }
|
||||
//Mod+Shift+Equal { set-window-height "+10%"; }
|
||||
|
||||
// Move the focused window between the floating and the tiling layout.
|
||||
Mod+V { toggle-window-floating; }
|
||||
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||
Mod+Space { toggle-window-floating; }
|
||||
Mod+Shift+Space { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
// Toggle tabbed column display mode.
|
||||
// Windows in this column will appear as vertical tabs,
|
||||
@@ -591,7 +593,7 @@ binds {
|
||||
|
||||
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||
Mod+Shift+E { quit; }
|
||||
Ctrl+Alt+Delete { quit; }
|
||||
//Ctrl+Alt+Delete { quit; }
|
||||
|
||||
// Powers off the monitors. To turn them back on, do any input like
|
||||
// moving the mouse or pressing any other key.
|
||||
@@ -603,6 +605,7 @@ spawn-at-startup "udiskie" "--tray"
|
||||
spawn-sh-at-startup "mako"
|
||||
spawn-sh-at-startup "wl-paste --watch cliphist store"
|
||||
spawn-sh-at-startup "~/.config/scripts/set_wallpaper.sh"
|
||||
spawn-sh-at-startup "niriusd"
|
||||
|
||||
// forces running on nvidia card
|
||||
debug {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=nextcloud
|
||||
After=network-online.target
|
||||
Wants=network-online.target systemd-networkd-wait-online.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/nextcloud
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
LimitNOFILE=65535:65535
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1 @@
|
||||
/home/frosty/.config/systemd/user/nextcloud.service
|
||||
Reference in New Issue
Block a user