<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.3">Jekyll</generator><link href="https://m4rv4x.github.io/skills-github-pages/feed.xml" rel="self" type="application/atom+xml" /><link href="https://m4rv4x.github.io/skills-github-pages/" rel="alternate" type="text/html" /><updated>2023-10-06T19:02:06+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/feed.xml</id><title type="html">ghost.shell</title><subtitle>Shell hacking resources</subtitle><author><name>m4rv4x</name></author><entry><title type="html">ssh-hosts</title><link href="https://m4rv4x.github.io/skills-github-pages/ssh-hosts/" rel="alternate" type="text/html" title="ssh-hosts" /><published>2023-10-06T00:00:00+00:00</published><updated>2023-10-06T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/ssh-hosts</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/ssh-hosts/">&lt;p&gt;Here is a sample configuration file for the SSH client (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ssh_config&lt;/code&gt;):&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# SSH client configuration file

# Global settings
Host *
    # Set default options for all hosts
    ForwardAgent yes
    ForwardX11 yes
    PasswordAuthentication yes
    PubkeyAuthentication yes
    ServerAliveInterval 60

# Host-specific settings
Host example.com
    # Set options for a specific host
    User myusername
    Port 22
    IdentityFile ~/.ssh/id_rsa

Host anotherhost.com
    # Set options for another host
    User anotheruser
    Port 2222
    IdentityFile ~/.ssh/another_key

Host anotherhost
    # Set options for another host
    HostName dev.example.com
    User anotheruser
    Port 2222
    IdentityFile ~/.ssh/another_key

# Add more host configurations as needed
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You can save this configuration file as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.ssh/config&lt;/code&gt; on your Linux/Debian system. Make sure to replace &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;example.com&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;anotherhost.com&lt;/code&gt; with the actual hostnames or IP addresses of the SSH servers you want to connect to. Also, update the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;User&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Port&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IdentityFile&lt;/code&gt; options according to your specific setup.&lt;/p&gt;

&lt;p&gt;Let me know if you need any further assistance!&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="bash" /><category term="bash" /><category term="ssh" /><category term="config" /><summary type="html">Here is a sample configuration file for the SSH client (ssh_config):</summary></entry><entry><title type="html">appimage</title><link href="https://m4rv4x.github.io/skills-github-pages/appimage/" rel="alternate" type="text/html" title="appimage" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/appimage</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/appimage/">&lt;h1 id=&quot;create-a-bin-for-my-appimage&quot;&gt;Create a bin for my AppImage&lt;/h1&gt;

&lt;p&gt;To create a bin for your AppImage, you can follow these steps:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Open a terminal.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Navigate to the directory where your AppImage is located.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Create a new directory for your bin file. For example, you can use the following command to create a directory named “myapp”:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;mkdir myapp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Move your AppImage file into the newly created directory:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;mv your-appimage-file myapp/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Change into the “myapp” directory:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cd myapp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Create a new shell script file with the same name as your AppImage. For example, if your AppImage is named “myapp.AppImage”, create a file named “myapp” without any file extension:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;touch myapp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Open the newly created file in a text editor:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;nano myapp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Add the following lines to the file:&lt;/p&gt;

    &lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;APPDIR&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;dirname&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;readlink&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-f&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;exec&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$APPDIR&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/your-appimage-file&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$@&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;Replace “your-appimage-file” with the actual name of your AppImage file.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Save the file and exit the text editor.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Make the script executable:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;chmod +x myapp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Add the “myapp” directory to your system’s PATH. You can do this by adding the following line to your shell’s configuration file (e.g., ~/.bashrc or ~/.zshrc):&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;export PATH=&quot;/path/to/myapp:$PATH&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;Replace “/path/to/myapp” with the actual path to the “myapp” directory.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Reload your shell’s configuration file to apply the changes:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;source ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;or&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;source ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now you should be able to run your AppImage by simply typing its name (e.g., “myapp”) in the terminal, regardless of your current working directory.&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="bash" /><category term="bash" /><category term="ssh" /><category term="config" /><summary type="html">Create a bin for my AppImage</summary></entry><entry><title type="html">bt-keymap-script</title><link href="https://m4rv4x.github.io/skills-github-pages/bt-keymap-script/" rel="alternate" type="text/html" title="bt-keymap-script" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/bt-keymap-script</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/bt-keymap-script/">&lt;p&gt;To start a custom keymap when using your Bluetooth keyboard on Debian 12, you can follow these steps:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Identify the device ID of your Bluetooth keyboard by running the following command:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ xinput list
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;Look for the entry corresponding to your Bluetooth keyboard. Note down the device ID.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Create a new udev rule to apply the custom keymap when the Bluetooth keyboard is connected. Run the following command to create a new rule file:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ sudo nano /etc/udev/rules.d/99-bluetooth-keyboard.rules
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;In the editor, add the following line:&lt;/p&gt;
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ACTION==&quot;add&quot;, SUBSYSTEM==&quot;input&quot;, ATTRS{idVendor}==&quot;YOUR_VENDOR_ID&quot;, ATTRS{idProduct}==&quot;YOUR_PRODUCT_ID&quot;, RUN+=&quot;/path/to/your/custom-keymap.sh&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;Replace &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;YOUR_VENDOR_ID&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;YOUR_PRODUCT_ID&lt;/code&gt; with the vendor and product IDs of your Bluetooth keyboard. Also, replace &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/path/to/your/custom-keymap.sh&lt;/code&gt; with the actual path to your custom keymap script.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Save the file and exit the editor.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Create the custom keymap script mentioned in the udev rule. Run the following command to create the script file:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ sudo nano /path/to/your/custom-keymap.sh
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;In the editor, add the commands to set up your custom keymap. For example, if you want to use the “colemak” keymap, you can use the following command:&lt;/p&gt;
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;setxkbmap -layout us -variant colemak
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;Customize the script according to your desired keymap configuration.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Save the file and exit the editor.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Make the script executable by running the following command:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ sudo chmod +x /path/to/your/custom-keymap.sh
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Reload the udev rules by running the following command:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ sudo udevadm control --reload-rules
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Disconnect and reconnect your Bluetooth keyboard.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Your custom keymap should now be applied automatically whenever you connect your Bluetooth keyboard to your Debian 12 system.&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="bash" /><category term="bash" /><category term="config" /><category term="cli" /><category term="bluetooth" /><summary type="html">To start a custom keymap when using your Bluetooth keyboard on Debian 12, you can follow these steps:</summary></entry><entry><title type="html">change-keycode</title><link href="https://m4rv4x.github.io/skills-github-pages/change-keycode/" rel="alternate" type="text/html" title="change-keycode" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/change-keycode</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/change-keycode/">&lt;p&gt;To replace keycode 180 with keycode 9 in Debian 12, you can follow these steps:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Open a terminal.&lt;/li&gt;
  &lt;li&gt;Run the following command to edit the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;evdev&lt;/code&gt; file:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo nano /usr/share/X11/xkb/keycodes/evdev
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;In the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;evdev&lt;/code&gt; file, locate the line that contains &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;180&lt;/code&gt; and change it to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;9&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Save the file by pressing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ctrl + O&lt;/code&gt;, then press &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Enter&lt;/code&gt; to confirm the filename.&lt;/li&gt;
  &lt;li&gt;Exit the text editor by pressing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ctrl + X&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Restart your system for the changes to take effect.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After restarting, the keycode 180 should be replaced with keycode 9 in Debian 12.&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="bash" /><category term="bash" /><category term="config" /><category term="cli" /><summary type="html">To replace keycode 180 with keycode 9 in Debian 12, you can follow these steps:</summary></entry><entry><title type="html">cmus-guide</title><link href="https://m4rv4x.github.io/skills-github-pages/cmus-guide/" rel="alternate" type="text/html" title="cmus-guide" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/cmus-guide</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/cmus-guide/">&lt;p&gt;Sure! Here’s a quick guide on how to use cmus:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Install cmus:
    &lt;ul&gt;
      &lt;li&gt;For Debian-based systems, open the terminal and run the command: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt-get install cmus&lt;/code&gt;&lt;/li&gt;
      &lt;li&gt;For other Linux distributions, refer to their respective package managers.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Launch cmus:
    &lt;ul&gt;
      &lt;li&gt;Open the terminal and run the command: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cmus&lt;/code&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Basic controls:
    &lt;ul&gt;
      &lt;li&gt;Use the arrow keys to navigate through the library.&lt;/li&gt;
      &lt;li&gt;Press Enter to play a song or directory.&lt;/li&gt;
      &lt;li&gt;Press q to quit cmus.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Library management:
    &lt;ul&gt;
      &lt;li&gt;Press 5 to switch to the library view.&lt;/li&gt;
      &lt;li&gt;Use the arrow keys to navigate through the library.&lt;/li&gt;
      &lt;li&gt;Press Enter to play a song or directory.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Playlist management:
    &lt;ul&gt;
      &lt;li&gt;Press 2 to switch to the playlist view.&lt;/li&gt;
      &lt;li&gt;Use the arrow keys to navigate through the playlist.&lt;/li&gt;
      &lt;li&gt;Press Enter to play a song.&lt;/li&gt;
      &lt;li&gt;Press d to remove a song from the playlist.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Playback controls:
    &lt;ul&gt;
      &lt;li&gt;Press p to pause or resume playback.&lt;/li&gt;
      &lt;li&gt;Press s to stop playback.&lt;/li&gt;
      &lt;li&gt;Press n to play the next song.&lt;/li&gt;
      &lt;li&gt;Press l to play the previous song.&lt;/li&gt;
      &lt;li&gt;Press + or - to adjust the volume.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Additional features:
    &lt;ul&gt;
      &lt;li&gt;Press / to search for a song or artist.&lt;/li&gt;
      &lt;li&gt;Press o to toggle the output plugin (e.g., switch between ALSA and PulseAudio).&lt;/li&gt;
      &lt;li&gt;Press C to change the settings.&lt;/li&gt;
      &lt;li&gt;Press ? to view the keybindings and help.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That’s it! You now have a basic understanding of how to use cmus. Enjoy your music!&lt;/p&gt;</content><author><name>m4rv4x</name></author><summary type="html">Sure! Here’s a quick guide on how to use cmus:</summary></entry><entry><title type="html">compton</title><link href="https://m4rv4x.github.io/skills-github-pages/compton/" rel="alternate" type="text/html" title="compton" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/compton</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/compton/">&lt;p&gt;To correctly set up Compton in i3, follow these steps:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Install Compton:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo apt install compton
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Create a Compton configuration file:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;touch ~/.config/compton.conf
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Open the Compton configuration file in a text editor:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;nano ~/.config/compton.conf
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Add the following lines to the configuration file:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# Basic configuration
backend = &quot;glx&quot;;
vsync = &quot;opengl-swc&quot;;

# Opacity settings
opacity-rule = [
    &quot;0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'&quot;
];

# Shadow settings
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
shadow-exclude = [
    &quot;name = 'Notification'&quot;,
    &quot;class_g = 'Conky'&quot;,
    &quot;class_g = 'Cairo-clock'&quot;,
    &quot;class_g = 'Xfce4-notifyd'&quot;,
    &quot;class_g = 'Xfce4-power-manager'&quot;
];

# Fading settings
fading = true;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [
    &quot;_NET_WM_OPACITY@:32a&quot;
];

# Window type settings
wintypes:
{
    tooltip =
    {
        shadow = false;
        fade = true;
        opacity = 0.9;
        focus = true;
    };
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Save and close the file.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Open your i3 configuration file:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;nano ~/.config/i3/config
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Add the following line to the i3 configuration file to enable Compton:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;exec --no-startup-id compton --config ~/.config/compton.conf
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Save and close the file.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Restart i3 for the changes to take effect:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;i3-msg restart
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Compton should now be correctly set up in i3.&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="i3" /><category term="bash" /><category term="config" /><category term="i3" /><summary type="html">To correctly set up Compton in i3, follow these steps:</summary></entry><entry><title type="html">current-city</title><link href="https://m4rv4x.github.io/skills-github-pages/current-city/" rel="alternate" type="text/html" title="current-city" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/current-city</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/current-city/">&lt;p&gt;To know your current city using the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;curl&lt;/code&gt; command in the command line interface (CLI), you can make use of a geolocation API service. One popular service is the ipapi API, which provides geolocation data based on IP addresses.&lt;/p&gt;

&lt;p&gt;Here’s an example command to retrieve your current city using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;curl&lt;/code&gt; and the ipapi API:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;curl &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'https://ipapi.co/json/'&lt;/span&gt; | jq &lt;span class=&quot;nt&quot;&gt;-r&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'.city'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This command sends a GET request to the ipapi API endpoint and retrieves the JSON response. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;jq&lt;/code&gt; command-line tool is then used to extract the city value from the JSON response.&lt;/p&gt;

&lt;p&gt;Make sure you have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;jq&lt;/code&gt; installed on your system before running the command. If it’s not installed, you can install it using the package manager for your Linux distribution.&lt;/p&gt;

&lt;p&gt;Note: The accuracy of the geolocation data depends on the IP address assigned to your system by your internet service provider (ISP).&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="bash" /><category term="bash" /><summary type="html">To know your current city using the curl command in the command line interface (CLI), you can make use of a geolocation API service. One popular service is the ipapi API, which provides geolocation data based on IP addresses.</summary></entry><entry><title type="html">feh-wallpaper</title><link href="https://m4rv4x.github.io/skills-github-pages/feh-wallpaper/" rel="alternate" type="text/html" title="feh-wallpaper" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/feh-wallpaper</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/feh-wallpaper/">&lt;p&gt;To set a wallpaper in i3, you can use a program called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;feh&lt;/code&gt;. Here’s how you can do it:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Install &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;feh&lt;/code&gt; if it’s not already installed. You can do this by running the following command:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo apt-get install feh
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Choose the image you want to set as your wallpaper and remember its file path.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Open your i3 configuration file using a text editor. The default location for the configuration file is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.config/i3/config&lt;/code&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Add the following line to your i3 configuration file, replacing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;file_path&amp;gt;&lt;/code&gt; with the actual path to your image file:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;exec --no-startup-id feh --bg-fill &amp;lt;file_path&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Save the changes to your i3 configuration file and exit the text editor.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Restart i3 for the changes to take effect. You can do this by pressing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Mod+Shift+R&lt;/code&gt; (by default, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Mod&lt;/code&gt; refers to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Super&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Windows&lt;/code&gt; key).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After restarting i3, your chosen image should be set as the wallpaper.&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="i3" /><category term="bash" /><category term="i3" /><summary type="html">To set a wallpaper in i3, you can use a program called feh. Here’s how you can do it:</summary></entry><entry><title type="html">fix-steam-debian12</title><link href="https://m4rv4x.github.io/skills-github-pages/fix-steam-debian12/" rel="alternate" type="text/html" title="fix-steam-debian12" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/fix-steam-debian12</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/fix-steam-debian12/">&lt;p&gt;sudo apt-get update\nsudo apt install libgl1-mesa-dri:i386 libgl1:i386\nsudo apt-get upgrade steam -f\nsudo apt install nvidia-driver-libs:i386&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="bash" /><category term="bash" /><summary type="html">sudo apt-get update\nsudo apt install libgl1-mesa-dri:i386 libgl1:i386\nsudo apt-get upgrade steam -f\nsudo apt install nvidia-driver-libs:i386</summary></entry><entry><title type="html">grub-update</title><link href="https://m4rv4x.github.io/skills-github-pages/grub-update/" rel="alternate" type="text/html" title="grub-update" /><published>2023-10-04T00:00:00+00:00</published><updated>2023-10-04T00:00:00+00:00</updated><id>https://m4rv4x.github.io/skills-github-pages/grub-update</id><content type="html" xml:base="https://m4rv4x.github.io/skills-github-pages/grub-update/">&lt;p&gt;Yes, there is a package called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;os-prober&lt;/code&gt; that can help you configure GRUB to include your Windows 10 partition for UEFI boot. You can install it by running the following command:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo apt install os-prober
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After installing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;os-prober&lt;/code&gt;, you can update GRUB to include the Windows 10 partition by running:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo update-grub
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This will scan your system for other operating systems and add them to the GRUB boot menu.&lt;/p&gt;</content><author><name>m4rv4x</name></author><category term="bash" /><category term="bash" /><category term="config" /><summary type="html">Yes, there is a package called os-prober that can help you configure GRUB to include your Windows 10 partition for UEFI boot. You can install it by running the following command:</summary></entry></feed>