smb-umount
This commit is contained in:
@@ -45,4 +45,4 @@ map ctrl+minus change_font_size all -1
|
||||
map ctrl+kp_subtract change_font_size all -1
|
||||
|
||||
map ctrl+0 change_font_size all 0
|
||||
map ctrl+kp_0 change_font_size all 0
|
||||
map ctrl+kp_0 change_font_size all 0
|
||||
|
||||
@@ -46,8 +46,8 @@ output "eDP-2" {
|
||||
backdrop-color "#1e1e2e"
|
||||
}
|
||||
|
||||
// output "HDMI-A-1" {
|
||||
// }
|
||||
output "HDMI-A-1" {
|
||||
}
|
||||
|
||||
|
||||
/************************Layout************************/
|
||||
@@ -139,12 +139,12 @@ spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
||||
spawn-sh-at-startup "wl-paste --type text --watch cliphist store"
|
||||
spawn-sh-at-startup "wl-paste --type image --watch cliphist store"
|
||||
|
||||
// wlsunset
|
||||
spawn-at-startup "sunset"
|
||||
|
||||
// Logitech
|
||||
spawn-sh-at-startup "solaar -w hide"
|
||||
|
||||
// Application associations
|
||||
spawn-at-startup "kbuildsycoca6"
|
||||
|
||||
// Some other heavy apps
|
||||
spawn-at-startup "sunshine"
|
||||
// spawn-at-startup "spotify"
|
||||
@@ -211,7 +211,7 @@ window-rule {
|
||||
// Normal terminal
|
||||
window-rule {
|
||||
match app-id="kitty"
|
||||
default-column-width { proportion 0.5; }
|
||||
default-column-width { proportion 0.3; }
|
||||
}
|
||||
|
||||
// Scrcpy
|
||||
@@ -305,6 +305,7 @@ binds {
|
||||
Mod+Shift+Return { spawn "ghostty"; }
|
||||
Mod+Shift+W { spawn-sh "QT_STYLE_OVERRIDE=Kvantum wallpaper-carousel"; }
|
||||
Mod+P { spawn-sh "pkill -x -n pwvucontrol || pwvucontrol"; }
|
||||
Mod+Shift+E { spawn "sunset"; }
|
||||
|
||||
// Quickshell
|
||||
Mod+Space { spawn-sh "qs ipc call panels toggleControlCenter"; }
|
||||
@@ -323,7 +324,7 @@ binds {
|
||||
Mod+Period { spawn-sh "pkill -x rofi || rofi-emoji"; }
|
||||
Ctrl+Alt+Delete { spawn-sh "pkill -x wlogout || wlogout -p layer-shell"; }
|
||||
Print { spawn-sh "screenshot-script full"; }
|
||||
Mod+Shift+S { spawn-sh "screenshot-script area > /home/kolkas/temp.log 2>&1"; }
|
||||
Mod+Shift+S { spawn-sh "screenshot-script area"; }
|
||||
Mod+Ctrl+Shift+S { spawn-sh "screenshot-script window"; }
|
||||
Mod+Shift+C { spawn-sh "hyprpicker -a"; }
|
||||
|
||||
|
||||
@@ -6,8 +6,12 @@
|
||||
# Requirements:
|
||||
# - cifs-utils
|
||||
# - ./issu
|
||||
# - sudo privileges
|
||||
|
||||
issu && {
|
||||
|
||||
path=$(dirname "$(realpath "$0")")
|
||||
|
||||
"$path"/issu && {
|
||||
echo "Do not run this script in sudo mode."
|
||||
exit 1
|
||||
}
|
||||
|
||||
31
config/scripts/.local/scripts/smb-umount
Executable file
31
config/scripts/.local/scripts/smb-umount
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Description:
|
||||
# Unmount all cifs mounts
|
||||
#
|
||||
# Requirements:
|
||||
# - cifs-utils
|
||||
# - ./issu
|
||||
# - sudo privileges
|
||||
|
||||
path=$(dirname "$(realpath "$0")")
|
||||
|
||||
"$path"/issu && {
|
||||
echo "Do not run this script in sudo mode."
|
||||
exit 1
|
||||
}
|
||||
|
||||
mount_points=$(mount | grep ' type cifs ' | awk '{print $3}')
|
||||
|
||||
[ -z "$mount_points" ] && {
|
||||
echo "No cifs mounts found."
|
||||
exit 0
|
||||
}
|
||||
|
||||
for mp in $mount_points; do
|
||||
echo "Unmounting $mp"
|
||||
sudo umount "$mp" || {
|
||||
echo "Failed to unmount $mp"
|
||||
exit 1
|
||||
}
|
||||
done
|
||||
@@ -12,7 +12,10 @@
|
||||
# - A common issue is that the VHDX file has logs that needs to be "replayed".
|
||||
# This can be done using `qemu-img check -r all <VHDX_PATH>`
|
||||
|
||||
issu && {
|
||||
|
||||
path=$(dirname "$(realpath "$0")")
|
||||
|
||||
"$path"/issu && {
|
||||
echo "Do not run this script in sudo mode."
|
||||
exit 1
|
||||
}
|
||||
|
||||
13
memo/fix-windows-time-skew.md
Normal file
13
memo/fix-windows-time-skew.md
Normal file
@@ -0,0 +1,13 @@
|
||||
> from [linux-surface wiki](https://github.com/linux-surface/linux-surface/wiki/Installation-and-Setup)
|
||||
|
||||
### Setting your clock to localtime to fix dual-boot time skew
|
||||
|
||||
Windows stores the hardware clock as localtime, whereas Linux and other OS-es typically use UTC. When dual-booting this can
|
||||
cause the time to skew. The easiest way to fix this is by configuring Linux to use localtime:
|
||||
|
||||
```bash
|
||||
sudo timedatectl set-local-rtc 1
|
||||
```
|
||||
```bash
|
||||
sudo hwclock --systohc --localtime
|
||||
```
|
||||
@@ -3,3 +3,4 @@ things I have installed:
|
||||
everything in `./hyprland-ricing.txt`, in addition to:
|
||||
|
||||
xwayland-satellite
|
||||
wlsunset
|
||||
|
||||
Reference in New Issue
Block a user