Only Tom Cruise knows why.

This commit is contained in:
Matthieu Fortin [CPC/CCP] 2024-11-22 14:23:03 -05:00
parent 596a773dd2
commit af79b6267b
9 changed files with 312 additions and 111 deletions

View file

@ -235,7 +235,8 @@ bindd = $mainMod, S, Launch menu to modify/create script, exec, autoscriptmenu
bindd = $mainMod, period, Launch the Emoji Picker, exec, jome -d | wl-copy #Emojipicker + clipboard copy bindd = $mainMod, period, Launch the Emoji Picker, exec, jome -d | wl-copy #Emojipicker + clipboard copy
bindd = $mainMod, V, Clipboard History, exec, cliphist list | tofi -c ~/.config/tofi/configV | cliphist decode | wl-copy # bindd = $mainMod, V, Clipboard History, exec, cliphist list | tofi -c ~/.config/tofi/configV | cliphist decode | wl-copy
bindd = $mainMod, V, Clipboard History, exec, "$HOME/.config/rofi/clipboard.sh"
bindd = $mainMod, R, Launch Remmina, exec, [floating] remmina bindd = $mainMod, R, Launch Remmina, exec, [floating] remmina
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys

View file

@ -0,0 +1,10 @@
#!/bin/bash
DIR=~/Pictures/wallpapers/
PICS=($(find ${DIR} -type f -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg"))
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]}]}
swww img ${DIR}/${RANDOMPICS} --transition-fps 60 --transition-type any --transition-duration 3
notify-send -i ${DIR}/${RANDOMPICS} "Wallpaper Changed" ${RANDOMPICS}

View file

@ -0,0 +1 @@
https://github.com/develcooking/hyprland-dotfiles/tree/main/.config/rofi

View file

@ -1,153 +1,154 @@
/*****----- Configuration -----*****/ /*****----- Configuration -----*****/
configuration { configuration {
modi: "dmenu"; modi: "dmenu";
show-icons: true; show-icons: true;
display-dmenu: "Powermenu :"; display-dmenu: "Powermenu :";
window-format: "{w} · {c} · {t}"; window-format: "{w} · {c} · {t}";
} }
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "colors.rasi" @import "colors.rasi"
* { * {
border-colour: var(selected); border-colour: var(selected);
background-colour: var(background-transparent); background-colour: var(background-transparent);
foreground-colour: var(foreground); foreground-colour: var(foreground);
alternate-background: var(selected); alternate-background: var(selected);
alternate-foreground: var(background); alternate-foreground: var(background);
font: "JetBrains Mono Nerd Font 10"; font: "JetBrains Mono Nerd Font 24";
} }
/*****----- Main Window -----*****/ /*****----- Main Window -----*****/
window { window {
/* properties for window widget */ /* properties for window widget */
transparency: "real"; /*transparency: "real";*/
location: center; transparency: "background";
location: center;
fullscreen: true; fullscreen: true;
width: 1366px; width: 1366px;
height: 768px; height: 768px;
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
/* properties for all widgets */ /* properties for all widgets */
enabled: true; enabled: true;
margin: 0px; margin: 0px;
padding: 50px; padding: 50px;
location: center; location: center;
border: 0px solid; border: 0px solid;
border-radius: 0px; border-radius: 0px;
border-color: @border-colour; border-color: @border-colour;
cursor: "default"; cursor: "default";
background-color: @background-colour; background-color: @background-colour;
} }
/*****----- Main Box -----*****/ /*****----- Main Box -----*****/
mainbox { mainbox {
enabled: true; enabled: true;
spacing: 10px; spacing: 10px;
margin: 0px; margin: 0px;
border: 0px solid; border: 0px solid;
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
border-color: @border-colour; border-color: @border-colour;
background-color: transparent; background-color: transparent;
children: [ "inputbar", "listview" ]; children: [ "inputbar", "listview" ];
} }
/*****----- Inputbar -----*****/ /*****----- Inputbar -----*****/
inputbar { inputbar {
enabled: true; enabled: true;
spacing: 10px; spacing: 10px;
location: center; location: center;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
border: 0px; border: 0px;
border-radius: 0px; border-radius: 0px;
border-color: @border-colour; border-color: @border-colour;
background-color: transparent; background-color: transparent;
text-color: @foreground-colour; text-color: @foreground-colour;
children: [ "prompt", "entry" ]; children: [ "prompt", "entry" ];
} }
prompt { prompt {
enabled: true; enabled: true;
background-color: inherit; background-color: inherit;
text-color: inherit; text-color: inherit;
} }
textbox-prompt-colon { textbox-prompt-colon {
enabled: true; enabled: true;
expand: false; expand: false;
str: "::"; str: "::";
background-color: inherit; background-color: inherit;
text-color: inherit; text-color: inherit;
} }
entry { entry {
enabled: true; enabled: true;
background-color: inherit; background-color: inherit;
text-color: inherit; text-color: inherit;
cursor: text; cursor: text;
placeholder: ""; placeholder: "";
placeholder-color: inherit; placeholder-color: inherit;
} }
/*****----- Listview -----*****/ /*****----- Listview -----*****/
listview { listview {
enabled: true; enabled: true;
columns: 1; columns: 1;
lines: 128; lines: 128;
cycle: false; cycle: false;
dynamic: false; dynamic: false;
scrollbar: false; scrollbar: false;
layout: vertical; layout: vertical;
reverse: false; reverse: false;
height: 800px; height: 800px;
spacing: 5px; spacing: 5px;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
border: 0px solid; border: 0px solid;
border-radius: 0px; border-radius: 0px;
border-color: @border-colour; border-color: @border-colour;
background-color: transparent; background-color: transparent;
text-color: @foreground-colour; text-color: @foreground-colour;
cursor: "default"; cursor: "default";
} }
scrollbar { scrollbar {
handle-width: 5px ; handle-width: 5px ;
handle-color: @handle-color; handle-color: @handle-color;
border-radius: 0px; border-radius: 0px;
background-color: @alternate-background; background-color: @alternate-background;
} }
/*****----- Elements -----*****/ /*****----- Elements -----*****/
element { element {
enabled: true; enabled: true;
spacing: 5px; spacing: 5px;
margin: 0px; margin: 0px;
padding: 5px; padding: 5px;
border: 0px solid; border: 0px solid;
border-radius: 8px; border-radius: 8px;
border-color: @border-colour; border-color: @border-colour;
background-color: transparent; background-color: transparent;
text-color: @foreground-colour; text-color: @foreground-colour;
cursor: pointer; cursor: pointer;
} }
element selected.normal { element selected.normal {
background-color: var(alternate-background); background-color: var(alternate-background);
text-color: var(foreground-alt); text-color: var(foreground-alt);
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 10px; size: 10px;
cursor: inherit; cursor: inherit;
} }
element-text { element-text {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
highlight: inherit; highlight: inherit;
cursor: inherit; cursor: inherit;
vertical-align: 0.5; vertical-align: 0.5;
horizontal-align: 0.0; horizontal-align: 0.0;
} }

View file

@ -3,5 +3,5 @@
theme="$HOME/.config/rofi/clipboard.rasi" theme="$HOME/.config/rofi/clipboard.rasi"
cliphist list | rofi -dmenu -i -p "Clipboard:" \ cliphist list | rofi -dmenu -i -p "Clipboard:" \
-theme ${theme} \ -theme "${theme}" \
| cliphist decode | wl-copy | cliphist decode | wl-copy

View file

@ -1,14 +1,14 @@
/*****----- Configuration -----*****/ /*****----- Configuration -----*****/
configuration { configuration {
modi: "drun"; modi: "drun";
show-icons: true; show-icons: true;
display-drun: "Apps : "; display-drun: "Apps : ";
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]"; drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";
window-format: "{w} · {c} · {t}"; window-format: "{w} · {c} · {t}";
} }
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "colors.rasi" @import "colors.rasi"
* { * {
border-colour: var(selected); border-colour: var(selected);

View file

@ -0,0 +1,153 @@
/*****----- Configuration -----*****/
configuration {
modi: "dmenu";
show-icons: true;
display-dmenu: "Powermenu:";
window-format: "{w} · {c} · {t}";
}
/*****----- Global Properties -----*****/
@import "colors.rasi"
* {
border-colour: var(selected);
background-colour: var(background-transparent);
foreground-colour: var(foreground);
alternate-background: var(selected);
alternate-foreground: var(background);
font: "JetBrains Mono Nerd Font 15";
}
/*****----- Main Window -----*****/
window {
/* properties for window widget */
transparency: "real";
location: center;
fullscreen: true;
width: 1366px;
height: 768px;
x-offset: 0px;
y-offset: 0px;
/* properties for all widgets */
enabled: true;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
cursor: "default";
background-color: @background-colour;
}
/*****----- Main Box -----*****/
mainbox {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 35%;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: @border-colour;
background-color: transparent;
children: [ "inputbar", "listview" ];
}
/*****----- Inputbar -----*****/
inputbar {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
children: [ "prompt", "entry" ];
}
prompt {
enabled: true;
background-color: inherit;
text-color: inherit;
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: "::";
background-color: inherit;
text-color: inherit;
}
entry {
enabled: true;
background-color: inherit;
text-color: inherit;
cursor: text;
placeholder: "";
placeholder-color: inherit;
}
/*****----- Listview -----*****/
listview {
enabled: true;
columns: 1;
lines: 12;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
cursor: "default";
}
scrollbar {
handle-width: 5px ;
handle-color: @handle-color;
border-radius: 0px;
background-color: @alternate-background;
}
/*****----- Elements -----*****/
element {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 5px;
border: 0px solid;
border-radius: 8px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
cursor: pointer;
}
element selected.normal {
background-color: var(alternate-background);
text-color: var(foreground-alt);
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 24px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
highlight: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}

35
hypr/.config/rofi/powermenu.sh Executable file
View file

@ -0,0 +1,35 @@
#!/bin/bash
theme="$HOME/.config/rofi/powermenu.rasi"
lock=" Lock"
logout="󰍃 Logout"
poweroff="⏻ Poweroff"
reboot=" Reboot"
sleep=" Suspend"
selected_option=$(echo "$poweroff
$lock
$reboot
$sleep
$logout" | rofi -dmenu -i -p "Powermenu:" \
-theme ${theme})
if [ "$selected_option" == "$lock" ]
then
hyprlock
elif [ "$selected_option" == "$logout" ]
then
loginctl terminate-user `whoami`
elif [ "$selected_option" == "$poweroff" ]
then
systemctl poweroff
elif [ "$selected_option" == "$reboot" ]
then
systemctl reboot
elif [ "$selected_option" == "$sleep" ]
then
hyprlock & sleep 2 && systemctl suspend
else
echo "No match"
fi

View file

@ -42,7 +42,7 @@ for imagen in "$wall_dir"/*.{jpg,jpeg,png,webp}; do
if [ -f "$imagen" ]; then if [ -f "$imagen" ]; then
nombre_archivo=$(basename "$imagen") nombre_archivo=$(basename "$imagen")
if [ ! -f "${cacheDir}/${nombre_archivo}" ] ; then if [ ! -f "${cacheDir}/${nombre_archivo}" ] ; then
imagick -strip "$imagen" -thumbnail 500x500^ -gravity center -extent 500x500 "${cacheDir}/${nombre_archivo}" magick convert -strip "$imagen" -thumbnail 500x500^ -gravity center -extent 500x500 "${cacheDir}/${nombre_archivo}"
fi fi
fi fi
done done