Added zsh install script
This commit is contained in:
@@ -19,10 +19,22 @@ local hotkeys_popup = require("awful.hotkeys_popup")
|
|||||||
-- when client with a matching name is opened:
|
-- when client with a matching name is opened:
|
||||||
require("awful.hotkeys_popup.keys")
|
require("awful.hotkeys_popup.keys")
|
||||||
|
|
||||||
|
-- Autostart from xdg/autostart dir
|
||||||
|
local xresources_name = "awesome.started"
|
||||||
|
local xresources = awful.util.pread("xrdb -query")
|
||||||
|
if not xresources:match(xresources_name) then
|
||||||
|
awful.util.spawn_with_shell("xrdb -merge <<< " .. "'" .. xresources_name .. ":true'")
|
||||||
|
-- Execute once for X server
|
||||||
|
os.execute("dex --environment Awesome --autostart --search-paths /etc/xdg/autostart")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
awful.util.spawn("picom --daemon")
|
awful.util.spawn("picom --daemon")
|
||||||
awful.util.spawn("xrandr --output DP-2 --output HDMI-0 --left-of DP-2")
|
awful.util.spawn("xrandr --output DP-4 --output HDMI-0 --left-of DP-4")
|
||||||
awful.util.spawn("xinput --set-prop 14 'libinput Accel Speed' -0.2")
|
awful.util.spawn("xinput --set-prop 18 'libinput Accel Speed' -0.2")
|
||||||
awful.util.spawn("xinput --set-prop 14 'libinput Accel Profile Enabled' 0, 1")
|
awful.util.spawn("xinput --set-prop 18 'libinput Accel Profile Enabled' 0, 1")
|
||||||
-- {{{ Error handling
|
-- {{{ Error handling
|
||||||
-- Check if awesome encountered an error during startup and fell back to
|
-- Check if awesome encountered an error during startup and fell back to
|
||||||
-- another config (This code will only ever execute for the fallback config)
|
-- another config (This code will only ever execute for the fallback config)
|
||||||
@@ -235,6 +247,10 @@ root.buttons(gears.table.join(
|
|||||||
|
|
||||||
-- {{{ Key bindings
|
-- {{{ Key bindings
|
||||||
globalkeys = gears.table.join(
|
globalkeys = gears.table.join(
|
||||||
|
|
||||||
|
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("pactl set-sink-volume @DEFAULT_SINK@ +5%") end),
|
||||||
|
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("pactl set-sink-volume @DEFAULT_SINK@ -5%") end),
|
||||||
|
awful.key({ }, "XF86AudioMute", function () awful.util.spawn("pactl set-sink-volume @DEFAULT_SINK@ -10%") end),
|
||||||
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
||||||
{description="show help", group="awesome"}),
|
{description="show help", group="awesome"}),
|
||||||
awful.key({ modkey, }, "Left", awful.tag.viewprev,
|
awful.key({ modkey, }, "Left", awful.tag.viewprev,
|
||||||
|
|||||||
0
install_dotfiles.sh
Normal file → Executable file
0
install_dotfiles.sh
Normal file → Executable file
3
install_zsh.sh
Normal file
3
install_zsh.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
git clone https://github.com/romkatv/powerlevel10k.git /home/tobi/.config/zsh_addons/powerlevel10k
|
||||||
|
git clone https://github.com/zsh-users/zsh-autosuggestions.git /home/tobi/.config/zsh_addons/zsh-autosuggestions
|
||||||
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /home/tobi/.config/zsh_addons/zsh-syntax-highlighting
|
||||||
Reference in New Issue
Block a user