feat: floated network manager

This commit is contained in:
hesam-init 2024-02-15 01:27:18 +03:30
parent 8074c03dfc
commit 3d7de848d8
5 changed files with 13 additions and 2 deletions

View file

@ -6,6 +6,7 @@ bind = $mainMod, K, exec, $waybar_toggle
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, W, exec, $terminal -e zellij
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, N, exec, $network_manager
bind = $mainMod, V, togglefloating,
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,

View file

@ -7,6 +7,10 @@ windowrulev2 = bordercolor rgb(FF0000) rgb(880808) 15deg,fullscreen:1
windowrulev2 = animation popin,class:^(alacritty|Alacritty|pavucontrol|org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float,class:^(pavucontrol|wlogout|dunst|Dunst|org.kde.polkit-kde-authentication-agent-1)$
# alacritty:
windowrulev2 = float, class:floating
windowrulev2 = animation popin, class:floating
# firefox rules :
windowrulev2= float,class:^(Firefox|firefox)$,title:^(Library|Picture-in-Picture)$
windowrulev2= animation popin,class:^(Firefox|firefox)$,title:^(Library|Picture-in-Picture)$

View file

@ -16,6 +16,7 @@ $scr_path = ~/.config/hypr/scripts
$mainMod = SUPER
$terminal = alacritty
$fileManager = dolphin
$network_manager = $scr_path/nmtui-launch.sh
$screenshot = $scr_path/hyprshot.sh
$swww_random = $scr_path/swww-random.sh
$waybar_toggle = $scr_path/waybar-toggle.sh

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
window_class="floating"
alacritty --class $window_class -e nmtui

View file

@ -193,7 +193,7 @@
"format-linked": "{ifname} (No IP) ",
"format-disconnected": " N/A {signalStrength}% : 0.0.0.0",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"on-click-right": "alacritty -e nmtui",
"on-click-right": "$HOME/.config/hypr/scripts/nmtui-launch.sh",
"tooltip": false
},
"network#network-2": {
@ -201,7 +201,7 @@
"format-ethernet": " {bandwidthDownBytes}  {bandwidthUpBytes}",
"format-linked": "(No IP) ",
"format-disconnected": " {bandwidthDownBytes}  {bandwidthUpBytes}",
"on-click-right": "alacritty -e nmtui",
"on-click-right": "$HOME/.config/hypr/scripts/nmtui-launch.sh",
"tooltip": false,
"interval": 1
},