This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Section "InputClass" | |
| Identifier "system-keyboard" | |
| MatchIsKeyboard "on" | |
| Option "XkbLayout" "us,ru" | |
| Option "XkbModel" "pc105" | |
| Option "XkbOptions" "grp:alt_shift_toggle" | |
| Option "XkbOptions" "caps:swapescape" | |
| EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bindsym Print exec "scrot -e 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'; sleep 1; exec notify-send 'screenshot has been saved to ~/tmp'" | |
| bindsym $mod+Print --release exec "scrot -ue 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'; sleep 1; exec notify-send 'screenshot has been saved to ~/tmp'" | |
| bindsym $mod+Shift+Print --release exec "notify-send 'selection will be saved to ~/tmp'; scrot -se 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Section "Monitor" | |
| Identifier "eDP-1" | |
| Option "Primary" "true" | |
| EndSection | |
| Section "Monitor" | |
| Identifier "VGA-1" | |
| Option "Above" "eDP-1" | |
| EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| my_laptop_external_monitor=$(xrandr --query | grep 'VGA-1') | |
| while true; do | |
| if [[ $my_laptop_external_monitor = *connected* ]]; then | |
| xrandr --output VGA-1 --mode 1920x1080 --above eDP-1 | |
| #xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x1080 --rotate normal --output VGA-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Section "ServerLayout" | |
| Identifier "Layout0" | |
| Option "AllowNVIDIAGPUScreens" | |
| Screen 0 "iGPU" 0 0 | |
| EndSection | |
| Section "Device" | |
| Identifier "iGPU" | |
| Driver "modesetting" | |
| BusID "PCI:0:2:0" #Проверьте BusID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use localectl(1) to instruct systemd-localed to update it. | |
| Section "InputClass" | |
| Identifier "system-keyboard" | |
| MatchIsKeyboard "on" | |
| Option "XkbModel""thinkpad" | |
| Option "XkbLayout" "us, ru" | |
| Option "XKbOptions""grp:alt_shift_toggle" | |
| EndSection |