From e3d1c29a87482a323894866999ff094031406e44 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 21 Nov 2023 23:20:36 +0100 Subject: use swapcaps instead of nocaps --- config/X/x11/xinitrc | 2 +- config/wayland/hypr/hyprland.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/X/x11/xinitrc b/config/X/x11/xinitrc index beb33f2..2b2d5f1 100755 --- a/config/X/x11/xinitrc +++ b/config/X/x11/xinitrc @@ -22,7 +22,7 @@ export MENUCMD="dmenu" export IMAGE="feh" xcompmgr & feh --no-fehbg --bg-scale ~/pics/wallpaper -setxkbmap -option ctrl:nocaps +setxkbmap -option ctrl:swapcaps xmodmap -e "keycode 135 = Super_L" xautolock -time 5 -locker slock & gammastep -m randr & diff --git a/config/wayland/hypr/hyprland.conf b/config/wayland/hypr/hyprland.conf index 9eb0549..4278dd6 100644 --- a/config/wayland/hypr/hyprland.conf +++ b/config/wayland/hypr/hyprland.conf @@ -10,7 +10,7 @@ input { kb_layout = us kb_variant = kb_model = - kb_options = ctrl:nocaps + kb_options = ctrl:swapcaps kb_rules = follow_mouse = 2 -- cgit v1.2.3 From 0764ed36dfbd2abd2783e422ef6b097c16584741 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 21 Nov 2023 23:21:16 +0100 Subject: map monitors to workspaces --- config/wayland/hypr/hyprland.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/wayland/hypr/hyprland.conf b/config/wayland/hypr/hyprland.conf index 4278dd6..302ae33 100644 --- a/config/wayland/hypr/hyprland.conf +++ b/config/wayland/hypr/hyprland.conf @@ -93,3 +93,16 @@ windowrulev2 = noanim, class:dmenu layerrule = noanim, launcher source = ./binds.conf + +# Even are for left monitor +workspace = 1,monitor:HDMI-A-4 +workspace = 3,monitor:HDMI-A-4 +workspace = 5,monitor:HDMI-A-4 +workspace = 7,monitor:HDMI-A-4 +workspace = 9,monitor:HDMI-A-4 + +# Odd are for right monitor +workspace = 2,monitor:DP-2 +workspace = 4,monitor:DP-2 +workspace = 6,monitor:DP-2 +workspace = 8,monitor:DP-2 -- cgit v1.2.3 From b11feb1758d79e762a8b86041123459aaa802cda Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 21 Nov 2023 23:21:36 +0100 Subject: added mmpv and mpass-otp --- bin/menuscripts/mmpv | 8 ++++++++ bin/menuscripts/mpass-otp | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100755 bin/menuscripts/mmpv create mode 100755 bin/menuscripts/mpass-otp diff --git a/bin/menuscripts/mmpv b/bin/menuscripts/mmpv new file mode 100755 index 0000000..76c0d6a --- /dev/null +++ b/bin/menuscripts/mmpv @@ -0,0 +1,8 @@ +#!/bin/sh +# Have an mpv instance that works with a socket somewhat globally +socket="/tmp/mpvsocket" +# Start mpv in idle if socket is not getting listened to +nc -zvU "$socket" || setsid mpv --input-ipc-server=/tmp/mpvsocket --idle & +file="$(PLAYER='echo' mmedia video)" +[ "$file" ] || exit 1 +echo '{ "command": ["loadfile", "'"$file"'", "append-play"] }' | nc -U /tmp/mpvsocket diff --git a/bin/menuscripts/mpass-otp b/bin/menuscripts/mpass-otp new file mode 100755 index 0000000..b60f953 --- /dev/null +++ b/bin/menuscripts/mpass-otp @@ -0,0 +1,6 @@ +#!/bin/sh +pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -name "*.gpg" -printf '%f\n' | + sed 's/\.gpg$//' | + commander -c)" +[ "$pass" ] || exit 1 +pass otp -c keys/otp/"$pass" -- cgit v1.2.3 From f4337fb80c21701027ee5ccdc1ac76511479f8ae Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 21 Nov 2023 23:56:10 +0100 Subject: use mmpv instead of mmedia --- config/wayland/hypr/binds.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/wayland/hypr/binds.conf b/config/wayland/hypr/binds.conf index 251ce69..15af7dd 100644 --- a/config/wayland/hypr/binds.conf +++ b/config/wayland/hypr/binds.conf @@ -112,8 +112,8 @@ bind = $mainMod, L, exec, dmlang bind =, L, exec, dmlang bind = $mainMod, S, exec, mmedia schoolpdf bind =, S, exec, mmedia schoolpdf -bind = $mainMod, V, exec, mmedia video -bind =, V, exec, mmedia video +bind = $mainMod, V, exec, mmpv +bind =, V, exec, mmpv bind = $mainMod, U, exec, mmedia cursus bind =, U, exec, mmedia cursus bind = $mainMod, M, exec, mmedia -- cgit v1.2.3 From 1024bf9cb8f38ff9cdd6e58a7614d1de8a5bbb29 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 22 Nov 2023 01:22:59 +0100 Subject: make move command mroe uniform --- bin/guiscripts/torque | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/guiscripts/torque b/bin/guiscripts/torque index 51e2806..8f939e1 100755 --- a/bin/guiscripts/torque +++ b/bin/guiscripts/torque @@ -47,8 +47,8 @@ prompt() { r) read -rp "remove torrent: #"; send -t "$REPLY" -r; k=0 ;; o) read -rp "load magnet: "; send -a "$REPLY"; k=0 ;; m) - read -rp "move torrent: " torrent - read -rp "destination folder: " + read -rp "move torrent: #" torrent + read -rp "destination folder: /downloads/" send -t "$torrent" --move "/downloads/$REPLY" ;; j) ((j==${#t[@]}))||((k=k>=j?k:++k,j=j<${#t[@]}?++j:j)) ;; -- cgit v1.2.3