Switched Screens

This commit is contained in:
Luca 2022-11-23 03:44:40 +01:00
parent a004c8c24d
commit a9bebf4efd
11 changed files with 97 additions and 18 deletions

View file

@ -9,3 +9,71 @@ Xft.hintstyle: hintfull
Xft.lcdfilter: lcdfilter Xft.lcdfilter: lcdfilter
Xft.dpi: 96 Xft.dpi: 96
XTerm*renderFont: true
XTerm*faceName: xft:JetBrainsMono Nerd Font, \
xft:JoyPixels:size=12, \
xft:Monospacexr:style=Medium:size=12
XTerm*faceSize: 11
XTerm*utf8: 2
XTerm*locale: true
XTerm.vt100.translations: #override \n\
Ctrl <Key> j: smaller-vt-font() \n\
Ctrl <Key> k: larger-vt-font()
! Every shell is a login shell by default (for inclusion of all necessary environment variables)
XTerm*loginshell: true
! I like a LOT of scrollback...
XTerm*savelines: 16384
! double-click to select whole URLs :D
XTerm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
! COLORS FOR SXIV
Sxiv.foreground: #bbc2cf
Sxiv.background: #1A2026
Sxiv.font: Roboto:style=bold:size=11
! special
*.foreground: #c5c8c6
*.background: #1d1f21
*.cursorColor: #c5c8c6
! black
*.color0: #282a2e
*.color8: #373b41
! red
*.color1: #a54242
*.color9: #cc6666
! green
*.color2: #8c9440
*.color10: #b5bd68
! yellow
*.color3: #de935f
*.color11: #f0c674
! blue
*.color4: #5f819d
*.color12: #81a2be
! magenta
*.color5: #85678f
*.color13: #b294bb
! cyan
*.color6: #5e8d87
*.color14: #8abeb7
! white
*.color7: #707880
*.color15: #c5c8c6

View file

@ -58,7 +58,9 @@ awful.keyboard.append_global_keybindings({
awful.key({ modkey, shift }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}), awful.key({ modkey, shift }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}),
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}), awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}),
awful.key({ modkey, shift }, "Return", function () awful.spawn("xterm") end, {description = "open a terminal", group = "launcher"}),
-- awful.key({ modkey }, "p", function() menubar.show() end, -- awful.key({ modkey }, "p", function() menubar.show() end,
-- {description = "show the menubar", group = "launcher"}), -- {description = "show the menubar", group = "launcher"}),
}) })
@ -243,7 +245,8 @@ awful.keyboard.append_global_keybindings({
-- awful.key({ modkey }, "=", function () awful.screen.focused().systray.visible = not awful.screen.focused().systray.visible end, {description = "Toggle systray visibility", group = "custom"}) -- awful.key({ modkey }, "=", function () awful.screen.focused().systray.visible = not awful.screen.focused().systray.visible end, {description = "Toggle systray visibility", group = "custom"})
--}) --})
awful.keyboard.append_global_keybindings({ awful.keyboard.append_global_keybindings({
awful.key({alt}, "Tab", function() awesome.emit_signal("sidebar::toggle") end), -- Sidebar awful.key({ alt }, "Tab", function() awesome.emit_signal("sidebar::toggle") end), -- Sidebar
awful.key({ alt }, "t", function() awful.titlebar.toggle(client.focus) end),
}) })
-- Client : -- Client :

View file

@ -122,9 +122,9 @@ local slide = rubato.timed {
-- Timer of sidebar's death -- Timer of sidebar's death
sidebar.timer = gears.timer { sidebar.timer = gears.timer {
timeout = 0.5, timeout = 0.5,
single_shot = true, single_shot = true,
callback = function() callback = function()
sidebar.visible = not sidebar.visible sidebar.visible = not sidebar.visible
end end
} }
@ -132,10 +132,12 @@ sidebar.timer = gears.timer {
-- Toggle function -- Toggle function
sidebar.toggle = function(s) sidebar.toggle = function(s)
if sidebar.visible then if sidebar.visible then
slide.target = awful.screen.focused().geometry.x - sidebar.width --slide.target = awful.screen.focused().geometry.x - sidebar.width
slide.target = awful.screen.focused().geometry.x + sidebar.width
sidebar.timer:start() sidebar.timer:start()
else else
slide.target = awful.screen.focused().geometry.x + dpi(10) --slide.target = awful.screen.focused().geometry.x + dpi(10)
slide.target = awful.screen.focused().geometry.x - dpi(195)
sidebar.visible = not sidebar.visible sidebar.visible = not sidebar.visible
end end
end end

View file

@ -39,6 +39,9 @@ require("lsp-config.lspsaga")
require("lsp-config.completion") require("lsp-config.completion")
require("lsp-config.null-ls") require("lsp-config.null-ls")
-- # Colorizer :
require("colorizer-config")
-- # Colorschames -- # Colorschames
--require("colorschames.onedark") --require("colorschames.onedark")
require("colorschames.catppuccin") require("colorschames.catppuccin")

View file

@ -0,0 +1 @@
require'colorizer'.setup()

View file

@ -26,12 +26,12 @@ local on_attach = function(client, bufnr)
end end
local servers = { local servers = {
"bashls", --"bashls",
"cssls", --"cssls",
"eslint", --"eslint",
--"ltex", --"ltex",
"sumneko_lua", "sumneko_lua",
"tsserver", --"tsserver",
--"pyright", --"pyright",
"jedi_language_server", "jedi_language_server",
} }

View file

@ -15,7 +15,7 @@ null_ls.setup({
sources = sources, sources = sources,
on_attach = function(client) on_attach = function(client)
if client.resolved_capabilities.document_formatting then if client.server_capabilities.document_formatting then
vim.cmd("autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting()") vim.cmd("autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting()")
end end
end, end,

View file

@ -47,7 +47,9 @@ return require("packer").startup(function()
-- # Startup : -- # Startup :
use("startup-nvim/startup.nvim") use("startup-nvim/startup.nvim")
-- # Colorizer :
use("norcalli/nvim-colorizer.lua")
-- # Colorscemes : -- # Colorscemes :
--use "EdenEast/nightfox.nvim" --use "EdenEast/nightfox.nvim"

View file

@ -4,8 +4,8 @@
#killall -9 xcompmgr dunst picom dwmbar #killall -9 xcompmgr dunst picom dwmbar
# Screen With Xrandr: # Screen With Xrandr:
#xrandr --output eDP-1 --mode 1366x768 --pos 0x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 1366x0 --rotate normal & xrandr --output eDP-1 --mode 1366x768 --pos 0x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 1366x0 --rotate normal &
xrandr --output eDP-1 --mode 1366x768 --pos 1600x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 0x0 --rotate normal & #xrandr --output eDP-1 --mode 1366x768 --pos 1600x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 0x0 --rotate normal &
# Num Lock : # Num Lock :
#numlockx & #numlockx &

View file

@ -17,7 +17,7 @@ if [[ $answer = y ]] ; then
fi fi
echo -e "${Cyan}Installing Packeges ...${No}" echo -e "${Cyan}Installing Packeges ...${No}"
doas pacman -Rns sudo doas pacman -Rns sudo
doas pacman -Sy --needed --noconfirm xcompmgr xdotool acpi xsel clipmenu xfce4-power-manager lxappearance nitrogen feh man-db kitty pacman-contrib xclip rsync arandr sxhkd pcmanfm-gtk3 obs-studio pamixer brightnessctl playerctl maim gnome-disk-utility cups xcalib exa lsd ghex cherrytree mpv audacious gst-libav net-tools gpick gdb curl wget alacritty terminator python-pip tk xterm tor cmatrix htop neofetch zsh veracrypt engrampa p7zip unzip cdrtools gufw android-tools ranger rofi rofi-emoji geany neovim inetutils dnsutils macchanger zathura zathura-ps zathura-djvu zathura-pdf-poppler qt5ct qt6ct kvantum-qt5 ffmpegthumbnailer tumbler grub-customizer mtpfs gvfs-mtp gvfs-gphoto2 qbittorrent btop qalculate-gtk volumeicon remmina freerdp qt5-tools python-pyqt5 qt6-tools python-pyqt6 qt5-quickcontrols2 qt5-graphicaleffects qt5-svg intel-media-driver mesa-utils rhash libva-utils firefox doas pacman -Sy --needed --noconfirm xcompmgr xdotool acpi xsel clipmenu xfce4-power-manager lxappearance nitrogen feh man-db kitty pacman-contrib xclip rsync arandr sxhkd pcmanfm-gtk3 obs-studio pamixer brightnessctl playerctl redshift maim gnome-disk-utility cups xcalib exa lsd ghex cherrytree mpv audacious gst-libav net-tools gpick gdb curl wget alacritty terminator python-pip tk xterm tor cmatrix htop neofetch zsh veracrypt engrampa p7zip unzip cdrtools gufw android-tools ranger rofi rofi-emoji geany neovim inetutils dnsutils macchanger zathura zathura-ps zathura-djvu zathura-pdf-poppler qt5ct qt6ct kvantum-qt5 ffmpegthumbnailer tumbler grub-customizer mtpfs gvfs-mtp gvfs-gphoto2 qbittorrent btop qalculate-gtk volumeicon remmina freerdp qt5-tools python-pyqt5 qt6-tools python-pyqt6 qt5-quickcontrols2 qt5-graphicaleffects qt5-svg intel-media-driver mesa-utils rhash libva-utils firefox
echo -e "QT_QPA_PLATFORMTHEME=qt5ct\nexport CM_LAUNCHER=rofi\nexport CM_HISTLENGTH=50\nexport CM_DIR=/tmp/clipmenu" | doas tee -a /etc/environment echo -e "QT_QPA_PLATFORMTHEME=qt5ct\nexport CM_LAUNCHER=rofi\nexport CM_HISTLENGTH=50\nexport CM_DIR=/tmp/clipmenu" | doas tee -a /etc/environment
echo -e "${Green}Installing Packages Done ${No}" echo -e "${Green}Installing Packages Done ${No}"

View file

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# Xsetup - run as root before the login dialog appears # Xsetup - run as root before the login dialog appears
# Screen With Xrandr: # Screen With Xrandr:
#xrandr --output eDP-1 --mode 1366x768 --pos 0x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 1366x0 --rotate normal & xrandr --output eDP-1 --mode 1366x768 --pos 0x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 1366x0 --rotate normal &
xrandr --output eDP-1 --mode 1366x768 --pos 1600x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 0x0 --rotate normal & #xrandr --output eDP-1 --mode 1366x768 --pos 1600x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 0x0 --rotate normal &
# Keybord Layout : # Keybord Layout :
setxkbmap -layout fr,dz -variant ,ar -option grp:alt_shift_toggle setxkbmap -layout fr,dz -variant ,ar -option grp:alt_shift_toggle