wm: sway: switch to rofi
add rot8
This commit is contained in:
parent
a6c6cb699a
commit
1787103cec
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
[
|
[
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./rofi.nix
|
# ./rofi.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
#./waybar.nix
|
#./waybar.nix
|
||||||
#./games.nix
|
#./games.nix
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
rocmPackages.clr
|
rocmPackages.clr
|
||||||
clinfo
|
clinfo
|
||||||
waybar
|
waybar
|
||||||
|
rot8
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
checkConfig = false;
|
checkConfig = false;
|
||||||
config = rec {
|
config = rec {
|
||||||
menu = "${pkgs.bemenu}/bin/bemenu-run -m -1 --hf '#ffff00' --tf '#888888' --nf '#00ff40' --hb '#424242' | xargs ${pkgs.sway}/bin/swaymsg exec --";
|
menu = "${pkgs.rofi}/bin/rofi -show combi -show-icons";
|
||||||
left = "m";
|
left = "m";
|
||||||
down = "n";
|
down = "n";
|
||||||
up = "e";
|
up = "e";
|
||||||
@ -61,7 +61,7 @@
|
|||||||
};
|
};
|
||||||
"DP-3" = {
|
"DP-3" = {
|
||||||
mode = "1920x1200";
|
mode = "1920x1200";
|
||||||
pos = "2560,120";
|
pos = "2560,180";
|
||||||
};
|
};
|
||||||
#"eDP-1" = {
|
#"eDP-1" = {
|
||||||
# mode = "1920x1080";
|
# mode = "1920x1080";
|
||||||
@ -88,7 +88,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
startup = [
|
startup = [
|
||||||
#{ command = "$HOME/.config/sway/scripts/2in1screen"; }
|
{ command = "exec ${pkgs.rot8}/bin/rot8"; }
|
||||||
{ command = "xrdb -load ~/.Xresources"; }
|
{ command = "xrdb -load ~/.Xresources"; }
|
||||||
{ command = "gsettings set org.gnome.desktop.interface gtk-theme Arc"; }
|
{ command = "gsettings set org.gnome.desktop.interface gtk-theme Arc"; }
|
||||||
{ command = "gsettings set org.gnome.desktop.interface icon-theme ePapirus"; }
|
{ command = "gsettings set org.gnome.desktop.interface icon-theme ePapirus"; }
|
||||||
@ -156,27 +156,28 @@
|
|||||||
"${alt}+Shift+${right}" = "move container to workspace next, workspace next";
|
"${alt}+Shift+${right}" = "move container to workspace next, workspace next";
|
||||||
|
|
||||||
"XF86TouchpadToggle" = "input type:touchpad events toggle enabled disabled";
|
"XF86TouchpadToggle" = "input type:touchpad events toggle enabled disabled";
|
||||||
"XF86AudioRaiseVolume" = "exec pulsemixer --change-volume +5 && ${config.cmds.notifications.volume}";
|
|
||||||
"XF86AudioLowerVolume" = "exec pulsemixer --change-volume -5 && ${config.cmds.notifications.volume}";
|
|
||||||
"XF86AudioMute" = "exec pulsemixer --toggle-mute && ${config.cmds.notifications.volume}";
|
|
||||||
#"XF86AudioRaiseVolume" = "exec pulsemixer --change-volume +5";
|
|
||||||
#"XF86AudioLowerVolume" = "exec pulsemixer --change-volume -5";
|
|
||||||
#"XF86AudioMute" = "exec pulsemixer --toggle-mute";
|
|
||||||
"XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
|
||||||
"XF86MonBrightnessDown" = "exec light -s sysfs/backlight/intel_backlight -U 5% && ${config.cmds.notifications.brightness}";
|
|
||||||
"XF86MonBrightnessUp" = "exec light -s sysfs/backlight/intel_backlight -A 5% && ${config.cmds.notifications.brightness}";
|
|
||||||
"XF86AudioPlay" = "exec playerctl play-pause";
|
"XF86AudioPlay" = "exec playerctl play-pause";
|
||||||
"XF86AudioNext" = "exec playerctl next";
|
"XF86AudioNext" = "exec playerctl next";
|
||||||
"XF86AudioPrev" = "exec playerctl previous";
|
"XF86AudioPrev" = "exec playerctl previous";
|
||||||
"XF86AudioStop" = "exec playerctl stop";
|
"XF86AudioStop" = "exec playerctl stop";
|
||||||
|
|
||||||
#XF86AudioMute = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
# Sink volume raise optionally with --device
|
||||||
#XF86AudioRaiseVolume = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
"XF86AudioRaiseVolume" = "exec swayosd-client --output-volume raise";
|
||||||
#XF86AudioLowerVolume = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
"XF86AudioLowerVolume" = "exec swayosd-client --output-volume lower";
|
||||||
#XF86AudioPlay = "exec ~/.config/waybar/scripts/toggle-play";
|
# Sink volume toggle mute
|
||||||
#XF86AudioNext = "exec playerctl --player=spotify next";
|
"XF86AudioMute" = "exec swayosd-client --output-volume mute-toggle";
|
||||||
#XF86AudioPrev = "exec playerctl --player=spotify previous";
|
# Source volume toggle mute
|
||||||
|
"XF86AudioMicMute" = "exec swayosd-client --input-volume mute-toggle";
|
||||||
|
|
||||||
|
# Capslock (If you don't want to use the backend)
|
||||||
|
#bindsym --release Caps_Lock exec swayosd-client --caps-lock;
|
||||||
|
|
||||||
|
# Brightness raise
|
||||||
|
"XF86MonBrightnessUp" = "exec swayosd-client --brightness raise";
|
||||||
|
# Brightness lower
|
||||||
|
"XF86MonBrightnessDown" = "exec swayosd-client --brightness lower";
|
||||||
|
|
||||||
|
|
||||||
"${mod}+${left}" = "focus left";
|
"${mod}+${left}" = "focus left";
|
||||||
"${mod}+${down}" = "focus down";
|
"${mod}+${down}" = "focus down";
|
||||||
"${mod}+${up}" = "focus up";
|
"${mod}+${up}" = "focus up";
|
||||||
@ -263,7 +264,8 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.swaylock = {
|
programs = {
|
||||||
|
swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
color = "000000";
|
color = "000000";
|
||||||
@ -271,19 +273,41 @@
|
|||||||
indicator-caps-lock = true;
|
indicator-caps-lock = true;
|
||||||
show-keyboard-layout = true;
|
show-keyboard-layout = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
rofi = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.rofi-wayland;
|
||||||
|
extraConfig = {
|
||||||
|
modi = "window,drun,ssh";
|
||||||
|
kb-primary-paste = "Control+V,Shift+Insert";
|
||||||
|
kb-secondary-paste = "Control+v,Insert";
|
||||||
|
};
|
||||||
|
font = "Cascadia Code";
|
||||||
|
location = "top-left";
|
||||||
|
plugins = [
|
||||||
|
pkgs.rofi-calc
|
||||||
|
pkgs.rofi-bluetooth
|
||||||
|
pkgs.pinentry-rofi
|
||||||
|
];
|
||||||
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||||
|
theme = "arthur";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.swayidle = {
|
services = {
|
||||||
enable = true;
|
swayidle = {
|
||||||
events = [
|
enable = true;
|
||||||
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
|
events = [
|
||||||
{ event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
|
||||||
{ event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
{ event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
||||||
{ event = "unlock"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
{ event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
||||||
];
|
{ event = "unlock"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
||||||
timeouts = [
|
];
|
||||||
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
timeouts = [
|
||||||
{ timeout = 600; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
||||||
];
|
{ timeout = 600; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
swayosd.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user