HiDPI
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
|||||||
fcitx5/conf/cached_layouts
|
cached_layouts
|
||||||
52
linux-hidpi/bspwm/bspwmrc
Executable file
52
linux-hidpi/bspwm/bspwmrc
Executable file
@@ -0,0 +1,52 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
bspc monitor -d I II III IV V VI VII VIII IX X
|
||||||
|
|
||||||
|
bspc config top_padding 27
|
||||||
|
bspc config border_width 0
|
||||||
|
bspc config window_gap 24
|
||||||
|
|
||||||
|
bspc config split_ratio 0.52
|
||||||
|
bspc config borderless_monocle true
|
||||||
|
bspc config gapless_monocle true
|
||||||
|
bspc config focus_follows_pointer true
|
||||||
|
|
||||||
|
bspc rule -a Org.gnome.Nautilus desktop='^1' state=pseudo_tiled follow=on
|
||||||
|
bspc rule -a TelegramDesktop desktop='^1' state=floating follow=on
|
||||||
|
bspc rule -a Nextcloud desktop='^1' state=pseudo_tiled follow=on
|
||||||
|
bspc rule -a "*:transgui" desktop='^1' state=floating follow=on
|
||||||
|
bspc rule -a Google-chrome desktop='^2' follow=on
|
||||||
|
bspc rule -a baka-mplayer state=floating sticky=on
|
||||||
|
|
||||||
|
function kill_program {
|
||||||
|
if ps -A | grep $1; then
|
||||||
|
killall -q $1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
kill_program gnome-keyring-daemon
|
||||||
|
kill_program picom
|
||||||
|
kill_program pasystray
|
||||||
|
kill_program polybar
|
||||||
|
kill_program dunst
|
||||||
|
kill_program polkit-gnome-authentication-agent-1
|
||||||
|
kill_program gsd-xsettings
|
||||||
|
|
||||||
|
gnome-keyring-daemon --start --components=pkcs11 &
|
||||||
|
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||||
|
/usr/lib/gsd-xsettings &
|
||||||
|
feh --bg-fill ${HOME}/.config/wallpaper.png
|
||||||
|
xsetroot -cursor_name left_ptr
|
||||||
|
picom --experimental-backends &
|
||||||
|
polybar mybar &
|
||||||
|
fcitx5 &
|
||||||
|
dunst &
|
||||||
|
sxhkd &
|
||||||
|
dex -a
|
||||||
|
libinput-gestures-setup restart
|
||||||
|
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
|
||||||
|
|
||||||
|
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
|
||||||
|
xinput set-prop "bcm5974" "libinput Accel Speed" 0.5
|
||||||
|
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1
|
||||||
|
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Accel Speed' -0.5
|
||||||
BIN
linux-hidpi/dconf/user
Normal file
BIN
linux-hidpi/dconf/user
Normal file
Binary file not shown.
1
linux-hidpi/dunst
Symbolic link
1
linux-hidpi/dunst
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/home/vbalien/newdotfiles/linux/dunst
|
||||||
@@ -62,6 +62,9 @@ modules-right = pulseaudio wlan eth date
|
|||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
|
tray-scale = 1.0
|
||||||
|
tray-maxsize = 32
|
||||||
|
|
||||||
;tray-detached = true
|
;tray-detached = true
|
||||||
;tray-offset-x = -10
|
;tray-offset-x = -10
|
||||||
;tray-background = #0063ff
|
;tray-background = #0063ff
|
||||||
Binary file not shown.
@@ -1,55 +0,0 @@
|
|||||||
{
|
|
||||||
"autoFit": 100,
|
|
||||||
"debug": false,
|
|
||||||
"gestures": false,
|
|
||||||
"hideAllControls": true,
|
|
||||||
"hidePopup": false,
|
|
||||||
"input": {
|
|
||||||
"Ctrl+S": [
|
|
||||||
"screenshot",
|
|
||||||
"Take screenshot without subtitles"
|
|
||||||
],
|
|
||||||
"Ctrl+Shift+T": [
|
|
||||||
"",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"lang": "ko",
|
|
||||||
"maxRecent": 5,
|
|
||||||
"mpv": {
|
|
||||||
"hwdec": "auto-copy",
|
|
||||||
"input-ipc-server": "/tmp/mpvsocket",
|
|
||||||
"msg-level": "status",
|
|
||||||
"screenshot-directory": "/home/vbalien/Pictures",
|
|
||||||
"screenshot-format": "",
|
|
||||||
"screenshot-template": "screenshot%#04n",
|
|
||||||
"speed": 1,
|
|
||||||
"vo": "",
|
|
||||||
"volume": 100
|
|
||||||
},
|
|
||||||
"onTop": "never",
|
|
||||||
"recent": [
|
|
||||||
{
|
|
||||||
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Ohys-Raws] Maou Gakuin no Futekigousha - 03 (AT-X 1280x720 x264 AAC).mp4"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Ohys-Raws] Re Zero kara Hajimeru Isekai Seikatsu 2nd Season - 02 (AT-X 1920x1080 x264 AAC).mp4"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Ohys-Raws] Yahari Ore no Seishun LoveCome wa Machigatte Iru. Kan - 02 (TBS 1920x1080 x264 AAC).mp4"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Moozzi2] Machikado Mazoku - TV + SP/[Moozzi2] Machikado Mazoku - 01 (BD 1920x1080 x.264 Flac).mkv"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Ohys-Raws] Bang Dream! Garupa Pico Oomori - 02 (AT-X 1280x720 x264 AAC).mp4"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"remaining": true,
|
|
||||||
"resume": true,
|
|
||||||
"screenshotDialog": false,
|
|
||||||
"showAll": true,
|
|
||||||
"splitter": 313,
|
|
||||||
"trayIcon": false,
|
|
||||||
"version": "2.0.3"
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,7 @@ bspc monitor -d I II III IV V VI VII VIII IX X
|
|||||||
|
|
||||||
bspc config top_padding 27
|
bspc config top_padding 27
|
||||||
bspc config border_width 0
|
bspc config border_width 0
|
||||||
bspc config window_gap `expr 12 * $GDK_SCALE`
|
bspc config window_gap 24
|
||||||
|
|
||||||
bspc config split_ratio 0.52
|
bspc config split_ratio 0.52
|
||||||
bspc config borderless_monocle true
|
bspc config borderless_monocle true
|
||||||
@@ -44,6 +44,7 @@ dunst &
|
|||||||
sxhkd &
|
sxhkd &
|
||||||
dex -a
|
dex -a
|
||||||
libinput-gestures-setup restart
|
libinput-gestures-setup restart
|
||||||
|
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
|
||||||
|
|
||||||
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
|
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
|
||||||
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1
|
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1
|
||||||
|
|||||||
21
mapping.ts
21
mapping.ts
@@ -15,7 +15,7 @@ const linux: DotOption = {
|
|||||||
`yay -S --needed
|
`yay -S --needed
|
||||||
sxhkd bspwm rofi dunst-git visual-studio-code-bin
|
sxhkd bspwm rofi dunst-git visual-studio-code-bin
|
||||||
ttf-nanum polybar-git baka-mplayer-git
|
ttf-nanum polybar-git baka-mplayer-git
|
||||||
picom-ibhagwan-git alacritty zsh maim
|
picom-ibhagwan-git alacritty zsh maim gtk-engine-murrine
|
||||||
xclip xdotool google-chrome pulseaudio
|
xclip xdotool google-chrome pulseaudio
|
||||||
gnome-keyring pasystray polkit-gnome nerd-fonts-terminus
|
gnome-keyring pasystray polkit-gnome nerd-fonts-terminus
|
||||||
gnome-settings-daemon nitrogen dex sassc
|
gnome-settings-daemon nitrogen dex sassc
|
||||||
@@ -36,7 +36,6 @@ const linux: DotOption = {
|
|||||||
".config/sxhkd": "linux/sxhkd",
|
".config/sxhkd": "linux/sxhkd",
|
||||||
".config/fcitx5": "linux/fcitx5",
|
".config/fcitx5": "linux/fcitx5",
|
||||||
".config/dconf": "linux/dconf",
|
".config/dconf": "linux/dconf",
|
||||||
".config/bakamplayer.ini": "linux/bakamplayer.ini",
|
|
||||||
".xinitrc": "linux/xinitrc",
|
".xinitrc": "linux/xinitrc",
|
||||||
".pam_environment": "linux/pam_environment",
|
".pam_environment": "linux/pam_environment",
|
||||||
".zshrc": "linux/zshrc",
|
".zshrc": "linux/zshrc",
|
||||||
@@ -44,22 +43,24 @@ const linux: DotOption = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const linuxMacbook: DotOption = {
|
const linuxHiDPI: DotOption = {
|
||||||
...linux,
|
...linux,
|
||||||
hostname: "MBP",
|
hostname: "MBP",
|
||||||
link: {
|
link: {
|
||||||
...linux.link,
|
...linux.link,
|
||||||
".config/dconf": "linux-macbook/dconf",
|
".config/bspwm": "linux-hidpi/bspwm",
|
||||||
".config/polybar": "linux-macbook/polybar",
|
".config/dconf": "linux-hidpi/dconf",
|
||||||
".config/rofi": "linux-macbook/rofi",
|
".config/polybar": "linux-hidpi/polybar",
|
||||||
".config/sxhkd": "linux-macbook/sxhkd",
|
".config/rofi": "linux-hidpi/rofi",
|
||||||
".pam_environment": "linux-macbook/pam_environment",
|
".config/sxhkd": "linux-hidpi/sxhkd",
|
||||||
".Xresources": "linux-macbook/Xresources",
|
".config/dunst": "linux-hidpi/dunst",
|
||||||
|
".pam_environment": "linux-hidpi/pam_environment",
|
||||||
|
".Xresources": "linux-hidpi/Xresources",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await dot(Deno.args, [linux, linuxMacbook]);
|
await dot(Deno.args, [linux, linuxHiDPI]);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err.message);
|
console.log(err.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user