This commit is contained in:
Matthieu Fortin [CPC/CCP] 2024-11-12 14:10:14 -05:00
parent c84b4dc179
commit 47d0c6d5f1
3 changed files with 34 additions and 3 deletions

View file

@ -8,6 +8,7 @@
"height": 40, "height": 40,
"modules-left": [ "modules-left": [
"custom/launcher", "custom/launcher",
"custom/hostname",
"hyprland/workspaces" "hyprland/workspaces"
], ],
"modules-center": ["hyprland/window"], "modules-center": ["hyprland/window"],
@ -22,10 +23,16 @@
"idle_inhibitor", "idle_inhibitor",
"pulseaudio", "pulseaudio",
"pulseaudio#microphone", "pulseaudio#microphone",
"clock", "clock"
"custom/power", // "custom/power",
], ],
"custom/hostname" :{
"format": "{}",
"return-type":"text",
"exec": "hostnamectl hostname"
},
"custom/updates": { "custom/updates": {
"format": "{} {icon}", "format": "{} {icon}",
"return-type": "json", "return-type": "json",

View file

@ -52,6 +52,7 @@ window#waybar {
#tray, #tray,
#custom-updates, #custom-updates,
#custom-launcher, #custom-launcher,
#custom-hostname,
#backlight { #backlight {
background: #1e1e2e; background: #1e1e2e;
padding: 0px 10px; padding: 0px 10px;
@ -64,10 +65,13 @@ window#waybar {
border-radius: 10px 0px 0px 10px; border-radius: 10px 0px 0px 10px;
} }
#custom-launcher { #custom-launcher {}
#custom-hostname {
border-top-right-radius: 10px; border-top-right-radius: 10px;
border-bottom-right-radius: 10px; border-bottom-right-radius: 10px;
} }
#tray { #tray {
border-radius: 10px; border-radius: 10px;
margin-right: 10px; margin-right: 10px;

20
scripts/.local/bin/mountnas Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
#SMB_SHARE="//172.31.180.13/TCLI_Courses"
SMB_SHARE="//172.31.180.13/TCLI_Courses"
MOUNT_POINT="$HOME/TCLI_Courses"
#USER="mfortin"
#PASSWORD="New42d@y"
if [ ! -d "$MOUNT_POINT" ]; then
mkdir -p "$MOUNT_POINT"
fi
#sudo mount -t cifs "$SMB_SHARE" "$MOUNT_POINT" -o username="$USER",password="$PASSWORD",gid=1000,uid=1000
sudo mount -t cifs "$SMB_SHARE" "$MOUNT_POINT" -o credentials=~/.config/credentials
if mountpoint -q "$MOUNT_POINT"; then
echo "Successfully mounted $SMB_SHARE at $MOUNT_POINT"
else
echo "Failed to mount $SMB_SHARE"
fi