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

View file

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