mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-15 09:02:40 +02:00
feat: replace old viewnior with imv
This commit is contained in:
@@ -10,10 +10,10 @@
|
|||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# allow fontconfig to discover fonts and configurations installed through home.packages
|
# allow fontconfig to discover fonts and configurations installed through home.packages
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
home.packages =
|
home.packages =
|
||||||
let
|
let
|
||||||
icomoon-feather-font = pkgs.callPackage ./icomoon-feather-font.nix { };
|
icomoon-feather-font = pkgs.callPackage ./icomoon-feather-font.nix { };
|
||||||
in
|
in
|
||||||
@@ -41,8 +41,6 @@
|
|||||||
mpd # for playing system sounds
|
mpd # for playing system sounds
|
||||||
mpc-cli # command-line mpd client
|
mpc-cli # command-line mpd client
|
||||||
ncmpcpp # a mpd client with a UI
|
ncmpcpp # a mpd client with a UI
|
||||||
|
|
||||||
viewnior # Elegant Image Viewer
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# if use vscode in wayland, uncomment those line
|
# if use vscode in wayland, uncomment those line
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#-- Output ----------------------------------------------------
|
#-- Output ----------------------------------------------------
|
||||||
# Configure your Display resolution, offset, scale and Monitors here, use `hyprctl monitors` to get the info.
|
# Configure your Display resolution, offset, scale and Monitors here, use `hyprctl monitors` to get the info.
|
||||||
|
|
||||||
# format:
|
# format:
|
||||||
# monitor=name,resolution,position,scale
|
# monitor=name,resolution,position,scale
|
||||||
monitor=DP-2,3840x2160@144,0x0,1.5
|
monitor=DP-2,3840x2160@144,0x0,1.5
|
||||||
@@ -16,7 +16,7 @@ input {
|
|||||||
kb_model=
|
kb_model=
|
||||||
kb_options=
|
kb_options=
|
||||||
kb_rules=
|
kb_rules=
|
||||||
follow_mouse=1
|
follow_mouse=1
|
||||||
natural_scroll=0
|
natural_scroll=0
|
||||||
force_no_accel=0
|
force_no_accel=0
|
||||||
# repeat_rate=
|
# repeat_rate=
|
||||||
@@ -29,7 +29,7 @@ input {
|
|||||||
general {
|
general {
|
||||||
sensitivity=2.0
|
sensitivity=2.0
|
||||||
apply_sens_to_raw=0
|
apply_sens_to_raw=0
|
||||||
|
|
||||||
gaps_in=5
|
gaps_in=5
|
||||||
gaps_out=10
|
gaps_out=10
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ dwindle {
|
|||||||
windowrule=float,foot-float
|
windowrule=float,foot-float
|
||||||
windowrule=float,yad|nm-connection-editor|pavucontrolk
|
windowrule=float,yad|nm-connection-editor|pavucontrolk
|
||||||
windowrule=float,xfce-polkit|kvantummanager|qt5ct
|
windowrule=float,xfce-polkit|kvantummanager|qt5ct
|
||||||
windowrule=float,feh|Viewnior|Gpicview|Gimp|nomacs
|
windowrule=float,feh|imv|Gpicview|Gimp|nomacs
|
||||||
windowrule=float,VirtualBox Manager|qemu|Qemu-system-x86_64
|
windowrule=float,VirtualBox Manager|qemu|Qemu-system-x86_64
|
||||||
windowrule=float,xfce4-appfinder
|
windowrule=float,xfce4-appfinder
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ bind=SUPERSHIFT,W,exec,$browser
|
|||||||
# -- Wofi --
|
# -- Wofi --
|
||||||
bind=ALT,F1,exec,$menu1
|
bind=ALT,F1,exec,$menu1
|
||||||
bind=SUPER,D,exec,$menu2
|
bind=SUPER,D,exec,$menu2
|
||||||
bind=ALT,F3,exec,$menu3
|
bind=ALT,F3,exec,$menu3
|
||||||
#bind=SUPER,X,exec,$powermenu
|
#bind=SUPER,X,exec,$powermenu
|
||||||
|
|
||||||
# -- Hyprland --
|
# -- Hyprland --
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ file="Screenshot_${time}_${RANDOM}.png"
|
|||||||
notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
|
notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
|
||||||
notify_view () {
|
notify_view () {
|
||||||
${notify_cmd_shot} "Copied to clipboard."
|
${notify_cmd_shot} "Copied to clipboard."
|
||||||
viewnior ${dir}/"$file"
|
imv ${dir}/"$file"
|
||||||
if [[ -e "$dir/$file" ]]; then
|
if [[ -e "$dir/$file" ]]; then
|
||||||
${notify_cmd_shot} "Screenshot Saved."
|
${notify_cmd_shot} "Screenshot Saved."
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -15,8 +15,10 @@
|
|||||||
pulsemixer
|
pulsemixer
|
||||||
|
|
||||||
# images
|
# images
|
||||||
imv
|
viu # terminal image viewer
|
||||||
|
imv # simple image viewer
|
||||||
imagemagick
|
imagemagick
|
||||||
|
deepin.image-editor
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|||||||
Reference in New Issue
Block a user