mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
The same thing we do every night, Pinky - try to take over the world!
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -16,3 +16,4 @@ skypeforlinux
|
|||||||
user-dirs.dirs
|
user-dirs.dirs
|
||||||
user-dirs.locale
|
user-dirs.locale
|
||||||
xfce4
|
xfce4
|
||||||
|
libvirt
|
||||||
|
|||||||
15
.zshrc
15
.zshrc
@@ -14,7 +14,7 @@ gtb () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
b64 () { printf "%s" "$1" | base64 $2; }
|
b64 () { printf "%s" "$1" | base64 $2; }
|
||||||
url() { curl -s https://0x0.st -F "file=@$*" | xclip -sel clip && notify-send "Link copied to clipboard"; }
|
url() { curl -s https://0x0.st -F "file=@$*" | wl-copy && notify-send "Link copied to clipboard"; }
|
||||||
|
|
||||||
gtd () {
|
gtd () {
|
||||||
[ -z "$*" ] && file=$(git diff --name-only | fzf --border=rounded --height=10 --layout=reverse | tr -d ' ') || file=$*
|
[ -z "$*" ] && file=$(git diff --name-only | fzf --border=rounded --height=10 --layout=reverse | tr -d ' ') || file=$*
|
||||||
@@ -22,19 +22,9 @@ gtd () {
|
|||||||
unset file
|
unset file
|
||||||
}
|
}
|
||||||
|
|
||||||
connectvnc () {
|
|
||||||
ssh -N -T -L 5900:localhost:5900 -L 9873:localhost:9873 root@45.32.230.158 &
|
|
||||||
temp=$!
|
|
||||||
sleep 4
|
|
||||||
vncviewer :0
|
|
||||||
kill $temp
|
|
||||||
unset temp
|
|
||||||
sleep 1
|
|
||||||
}
|
|
||||||
|
|
||||||
gtc () { [ -z "$*" ] && [ -p "/dev/stdin" ] && read -r query </dev/stdin || query=$*; git clone "$query"; }
|
gtc () { [ -z "$*" ] && [ -p "/dev/stdin" ] && read -r query </dev/stdin || query=$*; git clone "$query"; }
|
||||||
|
|
||||||
gtr () { [ -z "$*" ] && [ -p "/dev/stdin" ] && read -r query </dev/stdin || query=$*; curl -s "https://api.github.com/users/$query/repos" | sed -nE 's|.*svn_url": "([^"]*)".*|\1|p' | fzf --border --height=10 --layout=reverse; }
|
gtr () { [ -z "$*" ] && [ -p "/dev/stdin" ] && read -r query </dev/stdin || query=$*; curl -s "https://api.github.com/users/$query/repos" | sed -nE 's|.*ssh_url": "([^"]*)".*|\1|p' | fzf --border --height=10 --layout=reverse; }
|
||||||
|
|
||||||
gtu () { [ -z "$*" ] || curl -s "https://api.github.com/search/users?q=$*" | sed -nE 's_.*login": "([^"]*)".*_\1_p' | fzf --layout=reverse --border --height=10; }
|
gtu () { [ -z "$*" ] || curl -s "https://api.github.com/search/users?q=$*" | sed -nE 's_.*login": "([^"]*)".*_\1_p' | fzf --layout=reverse --border --height=10; }
|
||||||
|
|
||||||
@@ -56,6 +46,7 @@ alias anime="$HOME/lol/ani-cli"
|
|||||||
alias cp="cp -v"
|
alias cp="cp -v"
|
||||||
alias rm="rm -v"
|
alias rm="rm -v"
|
||||||
alias mv="mv -v"
|
alias mv="mv -v"
|
||||||
|
alias pgrep="pgrep -a"
|
||||||
alias grep="grep --color=auto -n"
|
alias grep="grep --color=auto -n"
|
||||||
alias ncdu="ncdu --color dark"
|
alias ncdu="ncdu --color dark"
|
||||||
alias ll="ls --color=auto -alh"
|
alias ll="ls --color=auto -alh"
|
||||||
|
|||||||
@@ -47,14 +47,14 @@ graph_symbol_net = "default"
|
|||||||
graph_symbol_proc = "default"
|
graph_symbol_proc = "default"
|
||||||
|
|
||||||
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
|
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
|
||||||
shown_boxes = "cpu mem net proc"
|
shown_boxes = "cpu net proc mem"
|
||||||
|
|
||||||
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
|
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
|
||||||
update_ms = 2000
|
update_ms = 1000
|
||||||
|
|
||||||
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
||||||
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
||||||
proc_sorting = "cpu lazy"
|
proc_sorting = "memory"
|
||||||
|
|
||||||
#* Reverse sorting order, True or False.
|
#* Reverse sorting order, True or False.
|
||||||
proc_reversed = False
|
proc_reversed = False
|
||||||
@@ -84,7 +84,7 @@ proc_info_smaps = False
|
|||||||
proc_left = False
|
proc_left = False
|
||||||
|
|
||||||
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
||||||
proc_filter_kernel = False
|
proc_filter_kernel = True
|
||||||
|
|
||||||
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
||||||
#* Select from a list of detected attributes from the options menu.
|
#* Select from a list of detected attributes from the options menu.
|
||||||
@@ -160,7 +160,7 @@ show_swap = True
|
|||||||
swap_disk = True
|
swap_disk = True
|
||||||
|
|
||||||
#* If mem box should be split to also show disks info.
|
#* If mem box should be split to also show disks info.
|
||||||
show_disks = True
|
show_disks = False
|
||||||
|
|
||||||
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
||||||
only_physical = True
|
only_physical = True
|
||||||
|
|||||||
2
code-flags.conf
Normal file
2
code-flags.conf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
--enable-features=UseOzonePlatform
|
||||||
|
--ozone-platform=wayland
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
#
|
#
|
||||||
# If this option is set to mouse or keyboard, the monitor option
|
# If this option is set to mouse or keyboard, the monitor option
|
||||||
# will be ignored.
|
# will be ignored.
|
||||||
follow = none
|
follow = mouse
|
||||||
|
|
||||||
### Geometry ###
|
### Geometry ###
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- conf -*-
|
# -*- conf -*-
|
||||||
|
|
||||||
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
||||||
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
|
term=xterm-256color
|
||||||
# login-shell=no
|
# login-shell=no
|
||||||
|
|
||||||
# app-id=foot
|
# app-id=foot
|
||||||
@@ -85,7 +85,7 @@ bright4=FC9867
|
|||||||
bright5=AB9DF2
|
bright5=AB9DF2
|
||||||
bright6=78DCE8
|
bright6=78DCE8
|
||||||
bright7=FCFCFA
|
bright7=FCFCFA
|
||||||
alpha=0.9
|
alpha=0.9
|
||||||
|
|
||||||
## dimmed colors (see foot.ini(5) man page)
|
## dimmed colors (see foot.ini(5) man page)
|
||||||
# dim0=<not set>
|
# dim0=<not set>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ update_process_names=0
|
|||||||
account_guest_in_cpu_meter=0
|
account_guest_in_cpu_meter=0
|
||||||
color_scheme=0
|
color_scheme=0
|
||||||
enable_mouse=1
|
enable_mouse=1
|
||||||
delay=15
|
delay=10
|
||||||
hide_function_bar=0
|
hide_function_bar=0
|
||||||
header_layout=two_50_50
|
header_layout=two_50_50
|
||||||
column_meters_0=LeftCPUs Memory Swap
|
column_meters_0=LeftCPUs Memory Swap
|
||||||
@@ -37,14 +37,14 @@ column_meter_modes_0=1 1 1
|
|||||||
column_meters_1=RightCPUs Tasks LoadAverage Uptime
|
column_meters_1=RightCPUs Tasks LoadAverage Uptime
|
||||||
column_meter_modes_1=1 2 2 2
|
column_meter_modes_1=1 2 2 2
|
||||||
tree_view=0
|
tree_view=0
|
||||||
sort_key=46
|
sort_key=47
|
||||||
tree_sort_key=0
|
tree_sort_key=0
|
||||||
sort_direction=-1
|
sort_direction=-1
|
||||||
tree_sort_direction=1
|
tree_sort_direction=1
|
||||||
tree_view_always_by_pid=0
|
tree_view_always_by_pid=0
|
||||||
all_branches_collapsed=0
|
all_branches_collapsed=0
|
||||||
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
|
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
|
||||||
.sort_key=PERCENT_CPU
|
.sort_key=PERCENT_MEM
|
||||||
.tree_sort_key=PID
|
.tree_sort_key=PID
|
||||||
.tree_view=0
|
.tree_view=0
|
||||||
.tree_view_always_by_pid=0
|
.tree_view_always_by_pid=0
|
||||||
|
|||||||
@@ -1,23 +1,7 @@
|
|||||||
# This is an example Hyprland config file.
|
|
||||||
#
|
|
||||||
# Refer to the wiki for more information.
|
|
||||||
|
|
||||||
#
|
|
||||||
# Please note not all available settings / options are set here.
|
|
||||||
# For a full list, see the wiki
|
|
||||||
#
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=,preferred,auto,1,mirror,eDP-1
|
monitor=,preferred,auto,1
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
|
||||||
# Execute your favorite apps at launch
|
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
|
||||||
|
|
||||||
# Source a file (multi-file configs)
|
|
||||||
# source = ~/.config/hypr/myColors.conf
|
|
||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
input {
|
input {
|
||||||
kb_layout = us
|
kb_layout = us
|
||||||
@@ -95,13 +79,6 @@ device:epic mouse V1 {
|
|||||||
sensitivity = -0.5
|
sensitivity = -0.5
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example windowrule v1
|
|
||||||
# windowrule = float, ^(kitty)$
|
|
||||||
# Example windowrule v2
|
|
||||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
@@ -117,8 +94,8 @@ bind = $mainMod, left, movefocus, l
|
|||||||
bind = $mainMod, right, movefocus, r
|
bind = $mainMod, right, movefocus, r
|
||||||
bind = $mainMod, up, movefocus, u
|
bind = $mainMod, up, movefocus, u
|
||||||
bind = $mainMod, down, movefocus, d
|
bind = $mainMod, down, movefocus, d
|
||||||
bind = SUPER,Tab,cyclenext,
|
bind = $mainMod,Tab,cyclenext,
|
||||||
bind = SUPER,Tab,bringactivetotop,
|
bind = $mainMod,Tab,bringactivetotop,
|
||||||
bind = ALT,Tab,cyclenext,
|
bind = ALT,Tab,cyclenext,
|
||||||
bind = ALT,Tab,bringactivetotop,
|
bind = ALT,Tab,bringactivetotop,
|
||||||
|
|
||||||
@@ -133,6 +110,10 @@ bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||||
|
bind = $mainMod SHIFT, up, movewindow, u
|
||||||
|
bind = $mainMod SHIFT, down, movewindow, d
|
||||||
|
bind = $mainMod SHIFT, left, movewindow, l
|
||||||
|
bind = $mainMod SHIFT, right, movewindow, r
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
bind = $mainMod, mouse_down, workspace, e+1
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
@@ -143,6 +124,8 @@ bindm = $mainMod, mouse:272, movewindow
|
|||||||
bindm = $mainMod, mouse:273, resizewindow
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
#applications shortcuts
|
#applications shortcuts
|
||||||
|
bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new
|
||||||
|
bind = $mainMod, F5, exec, $HOME/.config/hypr/wifi
|
||||||
bind = $mainMod, return, exec, foot
|
bind = $mainMod, return, exec, foot
|
||||||
#bind = $mainMod, Q, exec, wofi --show drun
|
#bind = $mainMod, Q, exec, wofi --show drun
|
||||||
bind = $mainMod, Q, exec, dmenu_run_history
|
bind = $mainMod, Q, exec, dmenu_run_history
|
||||||
@@ -151,14 +134,18 @@ bind = $mainMod, C, exec, code
|
|||||||
bind = $mainMod, E, exec, pcmanfm
|
bind = $mainMod, E, exec, pcmanfm
|
||||||
bind = $mainMod, B, exec, $HOME/repos_scripts/bkmark "add"
|
bind = $mainMod, B, exec, $HOME/repos_scripts/bkmark "add"
|
||||||
bind = $mainMod, I, exec, $HOME/repos_scripts/bkmark
|
bind = $mainMod, I, exec, $HOME/repos_scripts/bkmark
|
||||||
bind = SUPERSHIFT, B, exec, $HOME/repos_scripts/bkmark "rm"
|
bind = $mainMod SHIFT, B, exec, $HOME/repos_scripts/bkmark "rm"
|
||||||
#bind = $mainMod, S, exec, skypeforlinux
|
#bind = $mainMod, S, exec, skypeforlinux
|
||||||
|
#bind = SUPER_L, P, exec, $HOME/.config/hypr/workspace
|
||||||
bind = $mainMod, F11, exec, $HOME/.config/hypr/info
|
bind = $mainMod, F11, exec, $HOME/.config/hypr/info
|
||||||
bind = $mainMod, F6, exec, $HOME/.config/hypr/bluetooth
|
bind = $mainMod, F10, exec, $HOME/.config/hypr/bluetooth
|
||||||
|
bind = $mainMod, F6, exec, $HOME/.config/hypr/workspace
|
||||||
|
bind = $mainMod SHIFT, F6, exec, $HOME/.config/hypr/workspace "toggle"
|
||||||
bind = $mainMod, F1, exec, $HOME/.config/hypr/screenshot 'selclip'
|
bind = $mainMod, F1, exec, $HOME/.config/hypr/screenshot 'selclip'
|
||||||
bind = $mainMod, Print, exec, $HOME/.config/hypr/screenshot 'fullclip'
|
bind = $mainMod SHIFT, F1, exec, $HOME/.config/hypr/screenshot 'fullclip'
|
||||||
|
bind = ,Print, exec, $HOME/.config/hypr/screenshot 'fullsave'
|
||||||
bind = $mainMod, F12, exec, $HOME/.config/hypr/date
|
bind = $mainMod, F12, exec, $HOME/.config/hypr/date
|
||||||
bind = $mainMod, Delete, exec, $HOME/.config/hypr/workspace
|
bind = $mainMod, Delete, exec, $HOME/.config/hypr/workspace 'list'
|
||||||
|
|
||||||
#media keys
|
#media keys
|
||||||
binde=, XF86AudioRaiseVolume, exec, pamixer -i 2 && $HOME/.config/hypr/volume
|
binde=, XF86AudioRaiseVolume, exec, pamixer -i 2 && $HOME/.config/hypr/volume
|
||||||
@@ -169,8 +156,9 @@ binde=, XF86MonBrightnessUp, exec, light -A 5 && notify-send -h int:value:$(ligh
|
|||||||
|
|
||||||
#windows rules
|
#windows rules
|
||||||
windowrulev2=workspace 1,class:^(google-chrome)$
|
windowrulev2=workspace 1,class:^(google-chrome)$
|
||||||
|
windowrulev2=workspace 4,class:^(Google-chrome)$
|
||||||
windowrulev2=workspace 2,class:^(foot)$
|
windowrulev2=workspace 2,class:^(foot)$
|
||||||
windowrulev2=workspace 3,class:^(Pcmanfm)$
|
windowrulev2=workspace 3,class:^(pcmanfm)$
|
||||||
windowrulev2=workspace 3,class:^(mpv)$
|
windowrulev2=workspace 3,class:^(mpv)$
|
||||||
windowrulev2=workspace 3,class:^([c|C]ode)
|
windowrulev2=workspace 3,class:^([c|C]ode)
|
||||||
windowrulev2=workspace 4,class:^(Skype)$
|
windowrulev2=workspace 4,class:^(Skype)$
|
||||||
@@ -178,8 +166,9 @@ windowrulev2=workspace 4,class:^(pavucontrol)$
|
|||||||
|
|
||||||
#startup applications
|
#startup applications
|
||||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
exec-once=dunst
|
|
||||||
exec-once=ssh-agent
|
exec-once=ssh-agent
|
||||||
exec-once=swaybg -i ~/wall/2.jpg
|
exec-once=swaybg -i ~/wall/8.png
|
||||||
|
exec-once=$HOME/.config/hypr/workspace 'focus'
|
||||||
|
exec-once=sleep 5 && $HOME/.config/hypr/workspace
|
||||||
#exec-once=skypeforlinux
|
#exec-once=skypeforlinux
|
||||||
exec-once=google-chrome-stable 'https://web.skype.com/?openPstnPage=true'
|
exec-once=google-chrome-stable 'https://web.skype.com/?openPstnPage=true'
|
||||||
|
|||||||
10
hypr/power
10
hypr/power
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
$HOME/.config/hypr/workspace &
|
|
||||||
case "$(printf "lock\\nsuspend\\nlogout\\nreboot\\npoweroff" | bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 5 -p "⏻ " -H 40)" in
|
|
||||||
#lock) $HOME/.config/bspwm/screenlock.sh ;;
|
|
||||||
suspend) systemctl suspend ;;
|
|
||||||
logout) systemctl logout ;;
|
|
||||||
reboot) systemctl reboot ;;
|
|
||||||
poweroff) systemctl poweroff ;;
|
|
||||||
esac
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
x="Screenshot copied to clipboard"
|
x="Screenshot copied to clipboard"
|
||||||
[ "$*" = "fullclip" ] && grim - | xclip -selection clipboard -t image/png
|
[ "$*" = "fullclip" ] && grim - | wl-copy -t image/png
|
||||||
[ "$*" = "fullsave" ] && grim && x="Screenshot saved"
|
[ "$*" = "fullsave" ] && grim && x="Screenshot saved"
|
||||||
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | xclip -selection clipboard -t image/png
|
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | wl-copy -t image/png
|
||||||
|
|
||||||
notify-send "$x"
|
notify-send "$x"
|
||||||
|
|||||||
10
hypr/wifi
10
hypr/wifi
@@ -1,9 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if rfkill list wifi | grep -q 'yes$' ; then
|
if nmcli radio wifi | grep -q 'enabled' ; then
|
||||||
doas rfkill unblock wifi
|
nmcli radio wifi off
|
||||||
notify-send "wifi on" -r 1
|
|
||||||
else
|
else
|
||||||
doas rfkill block wifi
|
nmcli radio wifi on
|
||||||
notify-send "wifi off" -r 1
|
|
||||||
fi
|
fi
|
||||||
|
notify-send "wifi $(nmcli radio wifi)" -r 1
|
||||||
|
|||||||
@@ -1,10 +1,48 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -z "$*" ];then
|
setup_dual_monitor(){
|
||||||
for i in $(seq 4);do
|
sed -i "s/monitor=,preferred,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" $HOME/.config/hypr/hyprland.conf
|
||||||
notify-send "$(hyprctl clients | sed -nE 's_.*class: ([^ ]*).*_\1_p;s_.*workspace: ([^ ]*).*_workspace \1 : _p' | sed 'N;s/\n/ /')" -r 3 -t 1200
|
sleep 2
|
||||||
sleep 1
|
if hyprctl monitors | grep -q "HDMI-A-1";then
|
||||||
|
notify-send "Setting up dual monitor workflow"
|
||||||
|
wlr-randr --output 'HDMI-A-1' --custom-mode '1920x1080'
|
||||||
|
for i in $(seq 3);do
|
||||||
|
hyprctl dispatch moveworkspacetomonitor "$i 0"
|
||||||
done
|
done
|
||||||
else
|
hyprctl dispatch moveworkspacetomonitor "4 1"
|
||||||
socat - UNIX-CONNECT:/tmp/hypr/$(echo $HYPRLAND_INSTANCE_SIGNATURE)/.socket2.sock | while read line; do notify-send "$(printf "$line" | sed -nE 's_^(.*workspace)>>([^ ]*)_\1 \2_p')" -r 1 -t 700 2>/dev/null ;notify-send "$(printf "$line" | sed -nE 's_activewindow>>([^,]*).*_\1_p')" -r 2 -t 700 2>/dev/null; done
|
fi
|
||||||
fi
|
notify-send "done"
|
||||||
|
}
|
||||||
|
|
||||||
|
handle_it(){
|
||||||
|
[ -z "$1" ] || notify-send "$1"
|
||||||
|
choice=$(printf "Mirror\nExtend" | bemenu --fn 'Roboto 15' -i -c -W 0.2 -B 3 -l 20 -p "what to do??: " -m 1)
|
||||||
|
[ -z "$choice" ] && exit 0 || notify-send "${choice}ing screen"
|
||||||
|
if [ "$choice" = "Extend" ];then
|
||||||
|
setup_dual_monitor
|
||||||
|
else
|
||||||
|
sed -i "s/monitor=,preferred,auto,1/monitor=,preferred,0x0,1,mirror,eDP-1/g" $HOME/.config/hypr/hyprland.conf
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
list)
|
||||||
|
#only lists the open applications with their workspace number so u can safely close them
|
||||||
|
for i in $(seq 4);do
|
||||||
|
notify-send "$(hyprctl clients | sed -nE 's_.*class: ([^ ]*).*_\1_p;s_.*workspace: ([^ ]*).*_workspace \1 : _p' | sed 'N;s/\n/ /')" -r 3 -t 1500
|
||||||
|
sleep 1
|
||||||
|
done ;;
|
||||||
|
focus)
|
||||||
|
#shows the workspace number as notification whenever u switch workspaces and also handles the dual monitor setup on the fly(perfect for laptop users)
|
||||||
|
socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read line;do
|
||||||
|
printf "%s" "$line" | grep -q "monitoradded" && handle_it "$line"
|
||||||
|
printf "%s" "$line" | grep -q "monitorremoved" && sed -i "s/monitor=,preferred,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" $HOME/.config/hypr/hyprland.conf
|
||||||
|
notify-send "$(printf "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')" -r 1 -t 700 2>/dev/null
|
||||||
|
done ;;
|
||||||
|
toggle)
|
||||||
|
#toggle between mirror and extend setup. this function should be keybinded
|
||||||
|
handle_it ;;
|
||||||
|
*)
|
||||||
|
#to be executed once after booting to setup dual montiors by default if the monitor is connected
|
||||||
|
setup_dual_monitor ;;
|
||||||
|
esac
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
[*]
|
|
||||||
wallpaper_mode=crop
|
|
||||||
wallpaper_common=1
|
|
||||||
wallpaper=/home/tanveer/wallpapers/3.jpg
|
|
||||||
desktop_bg=#000000
|
|
||||||
desktop_fg=#ffffff
|
|
||||||
desktop_shadow=#000000
|
|
||||||
desktop_font=Sans 12
|
|
||||||
show_wm_menu=0
|
|
||||||
sort=mtime;ascending;
|
|
||||||
show_documents=1
|
|
||||||
show_trash=0
|
|
||||||
show_mounts=1
|
|
||||||
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
[config]
|
|
||||||
bm_open_method=0
|
|
||||||
|
|
||||||
[volume]
|
|
||||||
mount_on_startup=1
|
|
||||||
mount_removable=1
|
|
||||||
autorun=1
|
|
||||||
|
|
||||||
[ui]
|
|
||||||
always_show_tabs=0
|
|
||||||
max_tab_chars=32
|
|
||||||
win_width=640
|
|
||||||
win_height=480
|
|
||||||
splitter_pos=150
|
|
||||||
media_in_new_tab=0
|
|
||||||
desktop_folder_new_win=0
|
|
||||||
change_tab_on_drop=1
|
|
||||||
close_on_unmount=1
|
|
||||||
focus_previous=0
|
|
||||||
side_pane_mode=places
|
|
||||||
view_mode=icon
|
|
||||||
show_hidden=0
|
|
||||||
sort=name;ascending;
|
|
||||||
toolbar=newtab;navigation;home;
|
|
||||||
show_statusbar=1
|
|
||||||
pathbar_mode_buttons=0
|
|
||||||
@@ -12,8 +12,9 @@ x-content/win32-software=pcmanfm
|
|||||||
[ui]
|
[ui]
|
||||||
always_show_tabs=0
|
always_show_tabs=0
|
||||||
max_tab_chars=32
|
max_tab_chars=32
|
||||||
win_width=1906
|
win_width=948
|
||||||
win_height=1066
|
win_height=1066
|
||||||
|
maximized=1
|
||||||
splitter_pos=152
|
splitter_pos=152
|
||||||
media_in_new_tab=0
|
media_in_new_tab=0
|
||||||
desktop_folder_new_win=0
|
desktop_folder_new_win=0
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ underline_shortcut=1
|
|||||||
wheel_scroll_lines=3
|
wheel_scroll_lines=3
|
||||||
|
|
||||||
[SettingsWindow]
|
[SettingsWindow]
|
||||||
geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\aq\0\0\x4=\0\0\0\0\0\0\0\x14\0\0\x2\xde\0\0\x2\x9a\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\x14\0\0\aq\0\0\x4=)"
|
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\x2\xae\0\0\x2\x9a\0\0\0\0\0\0\0\x14\0\0\x2\xde\0\0\x2\x9a\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\x14\0\0\x2\xae\0\0\x2\x9a)
|
||||||
|
|
||||||
[Troubleshooting]
|
[Troubleshooting]
|
||||||
force_raster_widgets=1
|
force_raster_widgets=1
|
||||||
|
|||||||
Reference in New Issue
Block a user