this repo has no description
4
fork

Configure Feed

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

rofi

+91 -83
+91 -83
users/patriot/default.nix
··· 336 336 ]; 337 337 }; 338 338 wayland.windowManager = { 339 - sway = { 340 - enable = true; 341 - extraSessionCommands = extraEnv; 342 - wrapperFeatures.gtk = true; 343 - extraConfig = 344 - '' 345 - exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway 346 - ''; 347 - config = { 348 - fonts = { 349 - names = [font]; 350 - size = fontSize + 0.0; 351 - }; 352 - bars = [{ command = "${pkgBin "waybar"}"; }]; 353 - colors = { 354 - background = "#${bgColor}"; 355 - focused = addIndSway focusedWorkspace; 356 - focusedInactive = addIndSway inactiveWorkspace; 357 - unfocused = addIndSway activeWorkspace; 358 - urgent = addIndSway urgentWorkspace; 359 - }; 360 - gaps.smartBorders = "on"; 361 - menu = "${pkgs.rofi-wayland}/bin/rofi -show drun | ${pkgs.sway}/bin/swaymsg --"; 362 - modifier = "Mod4"; 363 - terminal = pkgBin "alacritty"; 364 - keybindings = 365 - let 366 - mod = config.wayland.windowManager.sway.config.modifier; 367 - cat = pkgs.coreutils + "/bin/cat"; 368 - grim = pkgBin "grim"; 369 - slurp = pkgBin "slurp"; 370 - pactl = pkgs.pulseaudio + "/bin/pactl"; 371 - playerctl = pkgBin "playerctl"; 372 - wf-recorder = pkgBin "wf-recorder"; 373 - wl-copy = pkgs.wl-clipboard + "/bin/wl-copy"; 374 - wl-paste = pkgs.wl-clipboard + "/bin/wl-paste"; 375 - shotFile = config.home.homeDirectory + "/shots/shot_$(date '+%Y_%m_%d_%H_%M')"; 376 - in 377 - lib.mkOptionDefault 378 - { 379 - "${mod}+q" = "kill"; 380 - "${mod}+Shift+e" = "exit"; 381 - "${mod}+Shift+r" = "reload"; 382 - # Screenshot and copy it to clipboard 383 - "Mod1+s" = 384 - '' 385 - exec export SFILE="${shotFile}.png" && ${grim} "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png 386 - ''; 387 - # Save selected area as a picture and copy it to clipboard 388 - "Mod1+Shift+s" = 389 - '' 390 - exec export SFILE="${shotFile}.png" && ${grim} -g "$(${slurp})" "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png 391 - ''; 392 - # Record screen 393 - "Mod1+r" = ''exec ${wf-recorder} -f "${shotFile}.mp4"''; 394 - # Record an area 395 - "Mod1+Shift+r" = ''exec ${wf-recorder} -g "$(${slurp})" -f "${shotFile}.mp4"''; 396 - # Stop recording 397 - "Mod1+c" = "exec pkill -INT wf-recorder"; 398 - "XF86AudioRaiseVolume" = "exec ${pactl} set-sink-volume 0 +5%"; 399 - "XF86AudioLowerVolume" = "exec ${pactl} set-sink-volume 0 -5%"; 400 - "XF86AudioMute" = "exec ${pactl} set-sink-mute 0 toggle"; 401 - "XF86AudioPlay" = "exec ${playerctl} play-pause"; 402 - "XF86AudioPrev" = "exec ${playerctl} previous"; 403 - "XF86AudioNext" = "exec ${playerctl} next"; 404 - "XF86AudioStop" = "exec ${playerctl} stop"; 339 + sway = 340 + let 341 + mkRofiCmd = args: "${config.programs.rofi.finalPackage}/bin/rofi ${lib.concatStringsSep " " args} | ${pkgs.sway}/bin/swaymsg --"; 342 + in { 343 + enable = true; 344 + extraSessionCommands = extraEnv; 345 + wrapperFeatures.gtk = true; 346 + extraConfig = 347 + '' 348 + exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway 349 + ''; 350 + config = { 351 + fonts = { 352 + names = [font]; 353 + size = fontSize + 0.0; 354 + }; 355 + bars = [{ command = "${pkgBin "waybar"}"; }]; 356 + colors = { 357 + background = "#${bgColor}"; 358 + focused = addIndSway focusedWorkspace; 359 + focusedInactive = addIndSway inactiveWorkspace; 360 + unfocused = addIndSway activeWorkspace; 361 + urgent = addIndSway urgentWorkspace; 362 + }; 363 + gaps.smartBorders = "on"; 364 + menu = mkRofiCmd ["-show" "drun"]; 365 + modifier = "Mod4"; 366 + terminal = pkgBin "alacritty"; 367 + keybindings = 368 + let 369 + mod = config.wayland.windowManager.sway.config.modifier; 370 + cat = pkgs.coreutils + "/bin/cat"; 371 + grim = pkgBin "grim"; 372 + slurp = pkgBin "slurp"; 373 + pactl = pkgs.pulseaudio + "/bin/pactl"; 374 + playerctl = pkgBin "playerctl"; 375 + wf-recorder = pkgBin "wf-recorder"; 376 + wl-copy = pkgs.wl-clipboard + "/bin/wl-copy"; 377 + wl-paste = pkgs.wl-clipboard + "/bin/wl-paste"; 378 + shotFile = config.home.homeDirectory + "/shots/shot_$(date '+%Y_%m_%d_%H_%M')"; 379 + in 380 + lib.mkOptionDefault 381 + { 382 + "${mod}+q" = "kill"; 383 + "${mod}+Shift+e" = "exit"; 384 + "${mod}+Shift+r" = "reload"; 385 + "${mod}+c" = mkRofiCmd ["-show" "calc"]; 386 + # Screenshot and copy it to clipboard 387 + "Mod1+s" = 388 + '' 389 + exec export SFILE="${shotFile}.png" && ${grim} "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png 390 + ''; 391 + # Save selected area as a picture and copy it to clipboard 392 + "Mod1+Shift+s" = 393 + '' 394 + exec export SFILE="${shotFile}.png" && ${grim} -g "$(${slurp})" "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png 395 + ''; 396 + # Record screen 397 + "Mod1+r" = ''exec ${wf-recorder} -f "${shotFile}.mp4"''; 398 + # Record an area 399 + "Mod1+Shift+r" = ''exec ${wf-recorder} -g "$(${slurp})" -f "${shotFile}.mp4"''; 400 + # Stop recording 401 + "Mod1+c" = "exec pkill -INT wf-recorder"; 402 + "XF86AudioRaiseVolume" = "exec ${pactl} set-sink-volume 0 +5%"; 403 + "XF86AudioLowerVolume" = "exec ${pactl} set-sink-volume 0 -5%"; 404 + "XF86AudioMute" = "exec ${pactl} set-sink-mute 0 toggle"; 405 + "XF86AudioPlay" = "exec ${playerctl} play-pause"; 406 + "XF86AudioPrev" = "exec ${playerctl} previous"; 407 + "XF86AudioNext" = "exec ${playerctl} next"; 408 + "XF86AudioStop" = "exec ${playerctl} stop"; 409 + }; 410 + input = { 411 + "*" = { 412 + xkb_layout = nixosConfig.services.xserver.layout; 413 + accel_profile = "flat"; 405 414 }; 406 - input = { 407 - "*" = { 408 - xkb_layout = nixosConfig.services.xserver.layout; 409 - accel_profile = "flat"; 410 415 }; 416 + output = { "*" = { bg = config.home.homeDirectory + "/wallpaper.png" + " fill"; }; }; 411 417 }; 412 - output = { "*" = { bg = config.home.homeDirectory + "/wallpaper.png" + " fill"; }; }; 413 418 }; 414 - }; 415 419 }; 416 420 programs = { 417 421 alacritty = { ··· 585 589 }; 586 590 }; 587 591 fzf.enable = true; 588 - rofi = 589 - let 590 - bgc = "#${bgColor}"; 591 - fgc = "#${fgColor}"; 592 - acc = "#${acColor}"; 593 - in { 594 - enable = true; 595 - package = pkgs.rofi-wayland; 596 - cycle = true; 597 - font = fontComb; 598 - terminal = pkgBin "alacritty"; 592 + rofi = { 593 + enable = true; 594 + package = pkgs.rofi-wayland; 595 + cycle = true; 596 + font = fontComb; 597 + terminal = pkgBin "alacritty"; 598 + plugins = with pkgs; [ 599 + rofi-calc 600 + rofi-systemd 601 + rofi-file-browser 602 + rofi-power-menu 603 + ]; 604 + extraConfig = { 605 + modi = "drun,calc,file-browser-extended,ssh,keys"; 599 606 }; 607 + }; 600 608 vscode = { 601 609 enable = true; 602 610 package = pkgs.vscodeWayland;