forked from serebrov/i3conf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautostart
executable file
·131 lines (117 loc) · 5.25 KB
/
autostart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/bin/bash
SCRIPT_PATH=`dirname $0`
#xrandr --dpi 220
# xrandr --output DP-1-2-1 --scale 1.75x1.75 --dpi 220
# xrandr --output eDP-1-1 --dpi 220
# xrandr --output eDP-1-1 --scale 2.0x2.0
# Set dpi and scale for laptop screen
# Note: need to set scale to 200% in gnome settings.
# xrandr --output eDP-1 --dpi 216 --scale 1.25x1.25
xrandr --output eDP-1 --auto --scale 1.25x1.25
# xrandr --output eDP-1 --dpi 216 --scale 1.25x1.25 --fb 3600x2025 --panning 3600x2025
#
# check the current resolution:
# xdpyinfo | grep -b 2 resolution
#
# how to calculate dpi: https://winaero.com/blog/find-change-screen-dpi-linux/
# $ xrandr | grep -w connected
# edp-1 connected primary 3744x2106+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
#
# Physical size: 340mm x 190mm -> 13.39 in x 7.48 in
# DPI: 3744 / 13.39 = 279.6; 2106 / 7.48 = 281.6
# (but actual resolution in gnome-control-center is 2880 x 1620):
# DPI: 2880 / 13.39 = 215; 1620 / 7.48 = 216
#
# List displays:
# xrandr --query
#
# Physical size: 597mm x 336mm -> 23.5 in x 13.23 in
# DPI: 3840 / 23.5 = 163.4; 2160 / 13.23 = 163.3 ?
# Physical size: 790mm x 254mm -> 31.1 in x 10 in
# DPI: 6720 / 23.5 = 216; 2160 / 10 = 216
#
# xrandr --output DP-2-1 --auto --scale 1.25x1.25 --output eDP-1 --auto --scale 1.25x1.25 --right-of DP-2-1
# xrandr --output eDP-1 --off
# xrandr --output DP-2-1 --auto --scale 1.25x1.25
# xrandr --dpi 220
#
# # xrandr --output DP-2-1 --scale 1.25x1.25 --output eDP-1 --scale 1.25x1.25
# # xrandr --output DP-2-1 --dpi 216 --scale 1.35x1.35
# # xrandr --output DP-2-1 --dpi 216 --scale 1.25x1.25 --output eDP-1 --dpi 216 --scale 1.25x1.25
# # xrandr --output DP-2-1 --dpi 216 --scale 1.25x1.25 --fb 4800x2700 --panning 4800x2700 --output eDP-1 --dpi 216 --scale 1.25x1.25 --fb 3600x2025 --panning 3600x2025
#
# gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"
#
# Note: scaling settings odn't seem to work when nvidia is enabled.
#
# Related gnome settings:
#
# gsettings get org.gnome.desktop.interface text-scaling-factor
# gsettings set org.gnome.desktop.interface text-scaling-factor 1.0
#
# gsettings get org.gnome.desktop.interface scaling-factor
# gsettings set org.gnome.desktop.interface scaling-factor 1.0
#
# See also:
# https://wiki.archlinux.org/index.php/HiDPI#X_Resources
# https://unix.stackexchange.com/questions/267885/how-do-i-scale-i3-window-manager-for-my-hidpi-display/274705#274705
# it now starts with the session (see gnome-session-setup-lvillani/)
# unity-settings-daemon &
/usr/lib/gnome-settings-daemon/gsd-xsettings &
# /usr/lib/gnome-settings-daemon/gsd-a11y-settings &
# /usr/lib/gnome-settings-daemon/gsd-backlight-helper &
# /usr/lib/gnome-settings-daemon/gsd-color &
# /usr/lib/gnome-settings-daemon/gsd-datetime &
# /usr/lib/gnome-settings-daemon/gsd-dummy &
# /usr/lib/gnome-settings-daemon/gsd-housekeeping &
# /usr/lib/gnome-settings-daemon/gsd-keyboard &
# /usr/lib/gnome-settings-daemon/gsd-media-keys &
# /usr/lib/gnome-settings-daemon/gsd-power &
# /usr/lib/gnome-settings-daemon/gsd-printer &
# /usr/lib/gnome-settings-daemon/gsd-print-notifications &
# /usr/lib/gnome-settings-daemon/gsd-rfkill &
# /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy &
# /usr/lib/gnome-settings-daemon/gsd-sharing &
# /usr/lib/gnome-settings-daemon/gsd-smartcard &
# /usr/lib/gnome-settings-daemon/gsd-sound &
# /usr/lib/gnome-settings-daemon/gsd-wacom &
# /usr/lib/gnome-settings-daemon/gsd-wacom-led-helper &
# /usr/lib/gnome-settings-daemon/gsd-wacom-oled-helper &
# /usr/lib/gnome-settings-daemon/gsd-wacom-wwan &
# /usr/bin/gnome-software --gapplication-service
/usr/lib/gnome-disk-utility/gsd-disk-utility-notify &
# gnome-power-manager &
gnome-flashback &
# Note: to remove the bottom panel, run:
# # check the list of pannels
# gsettings get org.gnome.gnome-panel.layout toplevel-id-list
# ['top-panel', 'bottom-panel']
# # remove bottom panel
# gsettings set org.gnome.gnome-panel.layout toplevel-id-list "['top-panel']"
# And to restore it, run
# gsettings set org.gnome.gnome-panel.layout toplevel-id-list "['top-panel', 'bottom-panel']"
#
# In general, it makes sense whether to keep the bottom paned or i3status, so alternative is to
# hide the i3status (just comment out bar {...} settings in the i3 config)
#
# gnome-panel is needed because with current session setup the nm-applet and some other icons are not
# shown in the i3status bar, the only workaround I found for now is to also run the gnome-panel
#
# There is also a shortcut to show/hide the top panel - $mod+p
# gnome-panel&
# http://off-topic.sardemff7.net/post/2012/06/21/About-the-GNOME-features-in-an-alternative-environment
gnome-terminal --role=xterm_scratchpad -e zsh &
# konsole --title=termscratch --hide-menubar --hide-tabbar -e zsh &
# uxterm -class UXTerm -title UXTermScratch -u8 "$@" -fa "Iosevka Medium:size=9" tmux
# Note: for some reason the nm-applet icon is not showing now in the tray area, switch to wicd
nm-applet &
#wicd-client &
update-notifier &
# volnoti &
# ~/deadbeef/deadbeef &
# http://127.0.0.1:8384/#
syncthing &
#setxkbmap us,ru -option "grp:caps_toggle,grp_led:scroll" -option compose:menu
$SCRIPT_PATH/keyboard-setup.sh
#cronfile=$SCRIPT_PATH/scripts/battery-info.cron.txt
#crontab -l | grep -v "battery-info.sh" | { cat; cat $cronfile; } | crontab -